| 1 |
|
| 2 |
from __future__ import absolute_import, division, print_function |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
__metaclass__ = type |
| 7 |
|
| 8 |
ANSIBLE_METADATA = {'status': ['preview'], |
| 9 |
'supported_by': 'community', |
| 10 |
'metadata_version': '1.1'} |
| 11 |
|
| 12 |
DOCUMENTATION = ''' |
| 13 |
--- |
| 14 |
module: fmgr_extensioncontroller_extenderprofile_wifi |
| 15 |
short_description: FortiExtender wifi configuration. |
| 16 |
version_added: "2.6.0" |
| 17 |
extends_documentation_fragment: |
| 18 |
- fortinet.fortimanager.general |
| 19 |
- fortinet.fortimanager.general.partial_crud |
| 20 |
options: |
| 21 |
revision_note: |
| 22 |
description: The change note that can be specified when an object is created or updated. |
| 23 |
type: str |
| 24 |
adom: |
| 25 |
description: The parameter (adom) in requested url. |
| 26 |
type: str |
| 27 |
required: true |
| 28 |
extender-profile: |
| 29 |
description: Deprecated, please use "extender_profile" |
| 30 |
type: str |
| 31 |
extender_profile: |
| 32 |
description: The parameter (extender-profile) in requested url. |
| 33 |
type: str |
| 34 |
extensioncontroller_extenderprofile_wifi: |
| 35 |
description: The top level parameters set. |
| 36 |
required: false |
| 37 |
type: dict |
| 38 |
suboptions: |
| 39 |
DFS: |
| 40 |
type: str |
| 41 |
description: Wi-Fi 5G Radio DFS channel enable/disable. |
| 42 |
choices: ['disable', 'enable'] |
| 43 |
country: |
| 44 |
type: str |
| 45 |
description: Country in which this FEX will operate |
| 46 |
choices: ['AL', 'DZ', 'AR', 'AM', 'AU', 'AT', 'AZ', 'BH', 'BD', 'BY', 'BE', 'BZ', |
| 47 |
'BO', 'BA', 'BR', 'BN', 'BG', 'CA', 'CL', 'CN', 'CO', 'CR', 'HR', 'CY', |
| 48 |
'CZ', 'DK', 'DO', 'EC', 'EG', 'SV', 'EE', 'FI', 'FR', 'GE', 'DE', 'GR', |
| 49 |
'GT', 'HN', 'HK', 'HU', 'IS', 'IN', 'ID', 'IE', 'IL', 'IT', 'JM', 'JP', |
| 50 |
'JO', 'KZ', 'KE', 'KR', 'KW', 'LV', 'LB', 'LI', 'LT', 'LU', 'MO', 'MK', |
| 51 |
'MY', 'MT', 'MX', 'MC', 'MA', 'NP', 'NL', 'AN', 'NZ', 'NO', 'OM', 'PK', |
| 52 |
'PA', 'PG', 'PE', 'PH', 'PL', 'PT', 'PR', 'QA', 'RO', 'RU', 'SA', 'SG', |
| 53 |
'SK', 'SI', 'ZA', 'ES', 'LK', 'SE', 'CH', 'TW', 'TH', 'TT', 'TN', 'TR', |
| 54 |
'AE', 'UA', 'GB', 'US', 'PS', 'UY', 'UZ', 'VE', 'VN', 'YE', 'ZW', 'NA', |
| 55 |
'BS', 'VC', 'KH', 'MV', 'AF', 'NG', 'TZ', 'ZM', 'SN', 'CI', 'GH', 'CM', |
| 56 |
'MW', 'AO', 'GA', 'ML', 'BJ', 'MG', 'TD', 'BW', 'LY', 'RW', 'MZ', 'GM', |
| 57 |
'LS', 'MU', 'CG', 'UG', 'BF', 'SL', 'SO', 'CD', 'NE', 'CF', 'SZ', 'TG', |
| 58 |
'LR', 'MR', 'DJ', 'RE', 'RS', 'ME', 'IQ', 'MD', 'KY', 'BB', 'BM', 'TC', |
| 59 |
'VI', 'PM', 'MF', 'GD', 'IM', 'FO', 'GI', 'GL', 'TM', 'MN', 'VU', 'FJ', |
| 60 |
'LA', 'GU', 'WF', 'MH', 'BT', 'FM', 'PF', 'NI', 'PY', 'HT', 'GY', 'AW', |
| 61 |
'KN', 'GF', 'AS', 'MP', 'PW', 'MM', 'LC', 'GP', 'ET', 'SR', 'CX', 'DM', |
| 62 |
'MQ', 'YT', 'BL', '--', 'TL'] |
| 63 |
radio_1: |
| 64 |
aliases: ['radio-1'] |
| 65 |
type: dict |
| 66 |
description: Radio 1. |
| 67 |
suboptions: |
| 68 |
d80211d: |
| 69 |
aliases: ['80211d'] |
| 70 |
type: str |
| 71 |
description: Enable/disable Wi-Fi 802. |
| 72 |
choices: ['disable', 'enable'] |
| 73 |
band: |
| 74 |
type: str |
| 75 |
description: Wi-Fi band selection 2. |
| 76 |
choices: ['2.4GHz'] |
| 77 |
bandwidth: |
| 78 |
type: str |
| 79 |
description: Wi-Fi channel bandwidth. |
| 80 |
choices: ['auto', '20MHz', '40MHz', '80MHz'] |
| 81 |
beacon_interval: |
| 82 |
aliases: ['beacon-interval'] |
| 83 |
type: int |
| 84 |
description: Wi-Fi beacon interval in miliseconds |
| 85 |
bss_color: |
| 86 |
aliases: ['bss-color'] |
| 87 |
type: int |
| 88 |
description: Wi-Fi 802. |
| 89 |
bss_color_mode: |
| 90 |
aliases: ['bss-color-mode'] |
| 91 |
type: str |
| 92 |
description: Wi-Fi 802. |
| 93 |
choices: ['auto', 'static'] |
| 94 |
channel: |
| 95 |
type: list |
| 96 |
elements: str |
| 97 |
description: Wi-Fi channels. |
| 98 |
choices: ['CH1', 'CH2', 'CH3', 'CH4', 'CH5', 'CH6', 'CH7', 'CH8', 'CH9', |
| 99 |
'CH10', 'CH11'] |
| 100 |
extension_channel: |
| 101 |
aliases: ['extension-channel'] |
| 102 |
type: str |
| 103 |
description: Wi-Fi extension channel. |
| 104 |
choices: ['auto', 'higher', 'lower'] |
| 105 |
guard_interval: |
| 106 |
aliases: ['guard-interval'] |
| 107 |
type: str |
| 108 |
description: Wi-Fi guard interval. |
| 109 |
choices: ['auto', '400ns', '800ns'] |
| 110 |
lan_ext_vap: |
| 111 |
aliases: ['lan-ext-vap'] |
| 112 |
type: list |
| 113 |
elements: str |
| 114 |
description: Wi-Fi LAN-Extention VAP. |
| 115 |
local_vaps: |
| 116 |
aliases: ['local-vaps'] |
| 117 |
type: list |
| 118 |
elements: str |
| 119 |
description: Wi-Fi local VAP. |
| 120 |
max_clients: |
| 121 |
aliases: ['max-clients'] |
| 122 |
type: int |
| 123 |
description: Maximum number of Wi-Fi radio clients |
| 124 |
mode: |
| 125 |
type: str |
| 126 |
description: Wi-Fi radio mode AP |
| 127 |
choices: ['AP', 'Client'] |
| 128 |
operating_standard: |
| 129 |
aliases: ['operating-standard'] |
| 130 |
type: str |
| 131 |
description: Wi-Fi operating standard. |
| 132 |
choices: ['auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', '11N-AC-AX', |
| 133 |
'11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', '11B-G-N', '11B-G', |
| 134 |
'11B', '11G-N-AX', '11N-AX', '11AX', '11G-N', '11N', '11G'] |
| 135 |
power_level: |
| 136 |
aliases: ['power-level'] |
| 137 |
type: int |
| 138 |
description: Wi-Fi power level in percent |
| 139 |
radio_id: |
| 140 |
aliases: ['radio-id'] |
| 141 |
type: int |
| 142 |
description: Radio ID. |
| 143 |
status: |
| 144 |
type: str |
| 145 |
description: Enable/disable Wi-Fi radio. |
| 146 |
choices: ['disable', 'enable'] |
| 147 |
radio_2: |
| 148 |
aliases: ['radio-2'] |
| 149 |
type: dict |
| 150 |
description: Radio 2. |
| 151 |
suboptions: |
| 152 |
d80211d: |
| 153 |
aliases: ['80211d'] |
| 154 |
type: str |
| 155 |
description: Enable/disable Wi-Fi 802. |
| 156 |
choices: ['disable', 'enable'] |
| 157 |
band: |
| 158 |
type: str |
| 159 |
description: Wi-Fi band selection 2. |
| 160 |
choices: ['5GHz'] |
| 161 |
bandwidth: |
| 162 |
type: str |
| 163 |
description: Wi-Fi channel bandwidth. |
| 164 |
choices: ['auto', '20MHz', '40MHz', '80MHz'] |
| 165 |
beacon_interval: |
| 166 |
aliases: ['beacon-interval'] |
| 167 |
type: int |
| 168 |
description: Wi-Fi beacon interval in miliseconds |
| 169 |
bss_color: |
| 170 |
aliases: ['bss-color'] |
| 171 |
type: int |
| 172 |
description: Wi-Fi 802. |
| 173 |
bss_color_mode: |
| 174 |
aliases: ['bss-color-mode'] |
| 175 |
type: str |
| 176 |
description: Wi-Fi 802. |
| 177 |
choices: ['auto', 'static'] |
| 178 |
channel: |
| 179 |
type: list |
| 180 |
elements: str |
| 181 |
description: Wi-Fi channels. |
| 182 |
choices: ['CH36', 'CH40', 'CH44', 'CH48', 'CH52', 'CH56', 'CH60', 'CH64', |
| 183 |
'CH100', 'CH104', 'CH108', 'CH112', 'CH116', 'CH120', 'CH124', |
| 184 |
'CH128', 'CH132', 'CH136', 'CH140', 'CH144', 'CH149', 'CH153', |
| 185 |
'CH157', 'CH161', 'CH165'] |
| 186 |
extension_channel: |
| 187 |
aliases: ['extension-channel'] |
| 188 |
type: str |
| 189 |
description: Wi-Fi extension channel. |
| 190 |
choices: ['auto', 'higher', 'lower'] |
| 191 |
guard_interval: |
| 192 |
aliases: ['guard-interval'] |
| 193 |
type: str |
| 194 |
description: Wi-Fi guard interval. |
| 195 |
choices: ['auto', '400ns', '800ns'] |
| 196 |
lan_ext_vap: |
| 197 |
aliases: ['lan-ext-vap'] |
| 198 |
type: list |
| 199 |
elements: str |
| 200 |
description: Wi-Fi LAN-Extention VAP. |
| 201 |
local_vaps: |
| 202 |
aliases: ['local-vaps'] |
| 203 |
type: list |
| 204 |
elements: str |
| 205 |
description: Wi-Fi local VAP. |
| 206 |
max_clients: |
| 207 |
aliases: ['max-clients'] |
| 208 |
type: int |
| 209 |
description: Maximum number of Wi-Fi radio clients |
| 210 |
mode: |
| 211 |
type: str |
| 212 |
description: Wi-Fi radio mode AP |
| 213 |
choices: ['AP', 'Client'] |
| 214 |
operating_standard: |
| 215 |
aliases: ['operating-standard'] |
| 216 |
type: str |
| 217 |
description: Wi-Fi operating standard. |
| 218 |
choices: ['auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', '11N-AC-AX', |
| 219 |
'11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', '11B-G-N', '11B-G', |
| 220 |
'11B', '11G-N-AX', '11N-AX', '11AX', '11G-N', '11N', '11G'] |
| 221 |
power_level: |
| 222 |
aliases: ['power-level'] |
| 223 |
type: int |
| 224 |
description: Wi-Fi power level in percent |
| 225 |
radio_id: |
| 226 |
aliases: ['radio-id'] |
| 227 |
type: int |
| 228 |
description: Radio ID. |
| 229 |
status: |
| 230 |
type: str |
| 231 |
description: Enable/disable Wi-Fi radio. |
| 232 |
choices: ['disable', 'enable'] |
| 233 |
''' |
| 234 |
|
| 235 |
EXAMPLES = ''' |
| 236 |
- name: Example playbook (generated based on argument schema) |
| 237 |
hosts: fortimanagers |
| 238 |
connection: httpapi |
| 239 |
gather_facts: false |
| 240 |
tasks: |
| 241 |
- name: FortiExtender wifi configuration. |
| 242 |
fortinet.fortimanager.fmgr_extensioncontroller_extenderprofile_wifi: |
| 243 |
# workspace_locking_adom: <global or your adom name> |
| 244 |
adom: <your own value> |
| 245 |
extender_profile: <your own value> |
| 246 |
extensioncontroller_extenderprofile_wifi: |
| 247 |
# DFS: <value in [disable, enable]> |
| 248 |
# country: <value in [AL, DZ, AR, ...]> |
| 249 |
# radio_1: |
| 250 |
# d80211d: <value in [disable, enable]> |
| 251 |
# band: <value in [2.4GHz]> |
| 252 |
# bandwidth: <value in [auto, 20MHz, 40MHz, ...]> |
| 253 |
# beacon_interval: <integer> |
| 254 |
# bss_color: <integer> |
| 255 |
# bss_color_mode: <value in [auto, static]> |
| 256 |
# channel: ["CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8", "CH9", "CH10", |
| 257 |
# "CH11"] |
| 258 |
# extension_channel: <value in [auto, higher, lower]> |
| 259 |
# guard_interval: <value in [auto, 400ns, 800ns]> |
| 260 |
# lan_ext_vap: <list or string> |
| 261 |
# local_vaps: <list or string> |
| 262 |
# max_clients: <integer> |
| 263 |
# mode: <value in [AP, Client]> |
| 264 |
# operating_standard: <value in [auto, 11A-N-AC-AX, 11A-N-AC, ...]> |
| 265 |
# power_level: <integer> |
| 266 |
# radio_id: <integer> |
| 267 |
# status: <value in [disable, enable]> |
| 268 |
# radio_2: |
| 269 |
# d80211d: <value in [disable, enable]> |
| 270 |
# band: <value in [5GHz]> |
| 271 |
# bandwidth: <value in [auto, 20MHz, 40MHz, ...]> |
| 272 |
# beacon_interval: <integer> |
| 273 |
# bss_color: <integer> |
| 274 |
# bss_color_mode: <value in [auto, static]> |
| 275 |
# channel: ["CH36", "CH40", "CH44", "CH48", "CH52", "CH56", "CH60", "CH64", "CH100", |
| 276 |
# "CH104", "CH108", "CH112", "CH116", "CH120", "CH124", "CH128", "CH132", |
| 277 |
# "CH136", "CH140", "CH144", "CH149", "CH153", "CH157", "CH161", "CH165"] |
| 278 |
# extension_channel: <value in [auto, higher, lower]> |
| 279 |
# guard_interval: <value in [auto, 400ns, 800ns]> |
| 280 |
# lan_ext_vap: <list or string> |
| 281 |
# local_vaps: <list or string> |
| 282 |
# max_clients: <integer> |
| 283 |
# mode: <value in [AP, Client]> |
| 284 |
# operating_standard: <value in [auto, 11A-N-AC-AX, 11A-N-AC, ...]> |
| 285 |
# power_level: <integer> |
| 286 |
# radio_id: <integer> |
| 287 |
# status: <value in [disable, enable]> |
| 288 |
''' |
| 289 |
|
| 290 |
RETURN = ''' |
| 291 |
meta: |
| 292 |
description: The result of the request. |
| 293 |
type: dict |
| 294 |
returned: always |
| 295 |
contains: |
| 296 |
request_url: |
| 297 |
description: The full url requested. |
| 298 |
returned: always |
| 299 |
type: str |
| 300 |
sample: /sys/login/user |
| 301 |
response_code: |
| 302 |
description: The status of api request. |
| 303 |
returned: always |
| 304 |
type: int |
| 305 |
sample: 0 |
| 306 |
response_data: |
| 307 |
description: The api response. |
| 308 |
type: list |
| 309 |
returned: always |
| 310 |
response_message: |
| 311 |
description: The descriptive message of the api response. |
| 312 |
type: str |
| 313 |
returned: always |
| 314 |
sample: OK. |
| 315 |
system_information: |
| 316 |
description: The information of the target system. |
| 317 |
type: dict |
| 318 |
returned: always |
| 319 |
rc: |
| 320 |
description: The status the request. |
| 321 |
type: int |
| 322 |
returned: always |
| 323 |
sample: 0 |
| 324 |
version_check_warning: |
| 325 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 326 |
type: list |
| 327 |
returned: complex |
| 328 |
''' |
| 329 |
from ansible.module_utils.basic import AnsibleModule |
| 330 |
from ansible.module_utils.connection import Connection |
| 331 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 332 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 333 |
|
| 334 |
|
| 335 |
def main(): |
| 336 |
urls_list = [ |
| 337 |
'/pm/config/adom/{adom}/obj/extension-controller/extender-profile/{extender-profile}/wifi', |
| 338 |
'/pm/config/global/obj/extension-controller/extender-profile/{extender-profile}/wifi' |
| 339 |
] |
| 340 |
module_arg_spec = { |
| 341 |
'adom': {'required': True, 'type': 'str'}, |
| 342 |
'extender-profile': {'type': 'str', 'api_name': 'extender_profile'}, |
| 343 |
'extender_profile': {'type': 'str'}, |
| 344 |
'revision_note': {'type': 'str'}, |
| 345 |
'extensioncontroller_extenderprofile_wifi': { |
| 346 |
'type': 'dict', 'v_range': [['7.4.3', '']], |
| 347 |
'options': { |
| 348 |
'DFS': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 349 |
'country': { |
| 350 |
'v_range': [['7.4.3', '']], |
| 351 |
'choices': [ |
| 352 |
'AL', 'DZ', 'AR', 'AM', 'AU', 'AT', 'AZ', 'BH', 'BD', 'BY', 'BE', 'BZ', 'BO', 'BA', 'BR', 'BN', 'BG', 'CA', 'CL', 'CN', 'CO', |
| 353 |
'CR', 'HR', 'CY', 'CZ', 'DK', 'DO', 'EC', 'EG', 'SV', 'EE', 'FI', 'FR', 'GE', 'DE', 'GR', 'GT', 'HN', 'HK', 'HU', 'IS', 'IN', |
| 354 |
'ID', 'IE', 'IL', 'IT', 'JM', 'JP', 'JO', 'KZ', 'KE', 'KR', 'KW', 'LV', 'LB', 'LI', 'LT', 'LU', 'MO', 'MK', 'MY', 'MT', 'MX', |
| 355 |
'MC', 'MA', 'NP', 'NL', 'AN', 'NZ', 'NO', 'OM', 'PK', 'PA', 'PG', 'PE', 'PH', 'PL', 'PT', 'PR', 'QA', 'RO', 'RU', 'SA', 'SG', |
| 356 |
'SK', 'SI', 'ZA', 'ES', 'LK', 'SE', 'CH', 'TW', 'TH', 'TT', 'TN', 'TR', 'AE', 'UA', 'GB', 'US', 'PS', 'UY', 'UZ', 'VE', 'VN', |
| 357 |
'YE', 'ZW', 'NA', 'BS', 'VC', 'KH', 'MV', 'AF', 'NG', 'TZ', 'ZM', 'SN', 'CI', 'GH', 'CM', 'MW', 'AO', 'GA', 'ML', 'BJ', 'MG', |
| 358 |
'TD', 'BW', 'LY', 'RW', 'MZ', 'GM', 'LS', 'MU', 'CG', 'UG', 'BF', 'SL', 'SO', 'CD', 'NE', 'CF', 'SZ', 'TG', 'LR', 'MR', 'DJ', |
| 359 |
'RE', 'RS', 'ME', 'IQ', 'MD', 'KY', 'BB', 'BM', 'TC', 'VI', 'PM', 'MF', 'GD', 'IM', 'FO', 'GI', 'GL', 'TM', 'MN', 'VU', 'FJ', |
| 360 |
'LA', 'GU', 'WF', 'MH', 'BT', 'FM', 'PF', 'NI', 'PY', 'HT', 'GY', 'AW', 'KN', 'GF', 'AS', 'MP', 'PW', 'MM', 'LC', 'GP', 'ET', |
| 361 |
'SR', 'CX', 'DM', 'MQ', 'YT', 'BL', '--', 'TL' |
| 362 |
], |
| 363 |
'type': 'str' |
| 364 |
}, |
| 365 |
'radio-1': { |
| 366 |
'v_range': [['7.4.3', '']], |
| 367 |
'type': 'dict', |
| 368 |
'options': { |
| 369 |
'80211d': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 370 |
'band': {'v_range': [['7.4.3', '']], 'choices': ['2.4GHz'], 'type': 'str'}, |
| 371 |
'bandwidth': {'v_range': [['7.4.3', '']], 'choices': ['auto', '20MHz', '40MHz', '80MHz'], 'type': 'str'}, |
| 372 |
'beacon-interval': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 373 |
'bss-color': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 374 |
'bss-color-mode': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'static'], 'type': 'str'}, |
| 375 |
'channel': { |
| 376 |
'v_range': [['7.4.3', '']], |
| 377 |
'type': 'list', |
| 378 |
'choices': ['CH1', 'CH2', 'CH3', 'CH4', 'CH5', 'CH6', 'CH7', 'CH8', 'CH9', 'CH10', 'CH11'], |
| 379 |
'elements': 'str' |
| 380 |
}, |
| 381 |
'extension-channel': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'higher', 'lower'], 'type': 'str'}, |
| 382 |
'guard-interval': {'v_range': [['7.4.3', '']], 'choices': ['auto', '400ns', '800ns'], 'type': 'str'}, |
| 383 |
'lan-ext-vap': {'v_range': [['7.4.3', '']], 'type': 'list', 'elements': 'str'}, |
| 384 |
'local-vaps': {'v_range': [['7.4.3', '']], 'type': 'list', 'elements': 'str'}, |
| 385 |
'max-clients': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 386 |
'mode': {'v_range': [['7.4.3', '']], 'choices': ['AP', 'Client'], 'type': 'str'}, |
| 387 |
'operating-standard': { |
| 388 |
'v_range': [['7.4.3', '']], |
| 389 |
'choices': [ |
| 390 |
'auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', '11N-AC-AX', '11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', '11B-G-N', |
| 391 |
'11B-G', '11B', '11G-N-AX', '11N-AX', '11AX', '11G-N', '11N', '11G' |
| 392 |
], |
| 393 |
'type': 'str' |
| 394 |
}, |
| 395 |
'power-level': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 396 |
'radio-id': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 397 |
'status': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 398 |
} |
| 399 |
}, |
| 400 |
'radio-2': { |
| 401 |
'v_range': [['7.4.3', '']], |
| 402 |
'type': 'dict', |
| 403 |
'options': { |
| 404 |
'80211d': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 405 |
'band': {'v_range': [['7.4.3', '']], 'choices': ['5GHz'], 'type': 'str'}, |
| 406 |
'bandwidth': {'v_range': [['7.4.3', '']], 'choices': ['auto', '20MHz', '40MHz', '80MHz'], 'type': 'str'}, |
| 407 |
'beacon-interval': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 408 |
'bss-color': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 409 |
'bss-color-mode': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'static'], 'type': 'str'}, |
| 410 |
'channel': { |
| 411 |
'v_range': [['7.4.3', '']], |
| 412 |
'type': 'list', |
| 413 |
'choices': [ |
| 414 |
'CH36', 'CH40', 'CH44', 'CH48', 'CH52', 'CH56', 'CH60', 'CH64', 'CH100', 'CH104', 'CH108', 'CH112', 'CH116', 'CH120', |
| 415 |
'CH124', 'CH128', 'CH132', 'CH136', 'CH140', 'CH144', 'CH149', 'CH153', 'CH157', 'CH161', 'CH165' |
| 416 |
], |
| 417 |
'elements': 'str' |
| 418 |
}, |
| 419 |
'extension-channel': {'v_range': [['7.4.3', '']], 'choices': ['auto', 'higher', 'lower'], 'type': 'str'}, |
| 420 |
'guard-interval': {'v_range': [['7.4.3', '']], 'choices': ['auto', '400ns', '800ns'], 'type': 'str'}, |
| 421 |
'lan-ext-vap': {'v_range': [['7.4.3', '']], 'type': 'list', 'elements': 'str'}, |
| 422 |
'local-vaps': {'v_range': [['7.4.3', '']], 'type': 'list', 'elements': 'str'}, |
| 423 |
'max-clients': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 424 |
'mode': {'v_range': [['7.4.3', '']], 'choices': ['AP', 'Client'], 'type': 'str'}, |
| 425 |
'operating-standard': { |
| 426 |
'v_range': [['7.4.3', '']], |
| 427 |
'choices': [ |
| 428 |
'auto', '11A-N-AC-AX', '11A-N-AC', '11A-N', '11A', '11N-AC-AX', '11AC-AX', '11AC', '11N-AC', '11B-G-N-AX', '11B-G-N', |
| 429 |
'11B-G', '11B', '11G-N-AX', '11N-AX', '11AX', '11G-N', '11N', '11G' |
| 430 |
], |
| 431 |
'type': 'str' |
| 432 |
}, |
| 433 |
'power-level': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 434 |
'radio-id': {'v_range': [['7.4.3', '']], 'type': 'int'}, |
| 435 |
'status': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 436 |
} |
| 437 |
} |
| 438 |
} |
| 439 |
} |
| 440 |
} |
| 441 |
|
| 442 |
module_option_spec = get_module_arg_spec('partial crud') |
| 443 |
module_arg_spec.update(module_option_spec) |
| 444 |
check_galaxy_version(module_arg_spec) |
| 445 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'extensioncontroller_extenderprofile_wifi'), |
| 446 |
supports_check_mode=True) |
| 447 |
if not module._socket_path: |
| 448 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 449 |
connection = Connection(module._socket_path) |
| 450 |
fmgr = NAPIManager('partial crud', module_arg_spec, urls_list, |
| 451 |
None, 'data', module, connection) |
| 452 |
fmgr.process_partial_crud() |
| 453 |
module.exit_json(meta=module.params) |
| 454 |
|
| 455 |
|
| 456 |
if __name__ == '__main__': |
| 457 |
main() |