| 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_wtpprofile_radio4 |
| 15 |
short_description: Configuration options for radio 4. |
| 16 |
version_added: "2.1.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 |
wtp-profile: |
| 29 |
description: Deprecated, please use "wtp_profile" |
| 30 |
type: str |
| 31 |
wtp_profile: |
| 32 |
description: The parameter (wtp-profile) in requested url. |
| 33 |
type: str |
| 34 |
wtpprofile_radio4: |
| 35 |
description: The top level parameters set. |
| 36 |
required: false |
| 37 |
type: dict |
| 38 |
suboptions: |
| 39 |
airtime_fairness: |
| 40 |
aliases: ['airtime-fairness'] |
| 41 |
type: str |
| 42 |
description: Enable/disable airtime fairness |
| 43 |
choices: ['disable', 'enable'] |
| 44 |
amsdu: |
| 45 |
type: str |
| 46 |
description: Enable/disable 802. |
| 47 |
choices: ['disable', 'enable'] |
| 48 |
ap_handoff: |
| 49 |
aliases: ['ap-handoff'] |
| 50 |
type: str |
| 51 |
description: Enable/disable AP handoff of clients to other APs |
| 52 |
choices: ['disable', 'enable'] |
| 53 |
ap_sniffer_addr: |
| 54 |
aliases: ['ap-sniffer-addr'] |
| 55 |
type: str |
| 56 |
description: MAC address to monitor. |
| 57 |
ap_sniffer_bufsize: |
| 58 |
aliases: ['ap-sniffer-bufsize'] |
| 59 |
type: int |
| 60 |
description: Sniffer buffer size |
| 61 |
ap_sniffer_chan: |
| 62 |
aliases: ['ap-sniffer-chan'] |
| 63 |
type: int |
| 64 |
description: Channel on which to operate the sniffer |
| 65 |
ap_sniffer_ctl: |
| 66 |
aliases: ['ap-sniffer-ctl'] |
| 67 |
type: str |
| 68 |
description: Enable/disable sniffer on WiFi control frame |
| 69 |
choices: ['disable', 'enable'] |
| 70 |
ap_sniffer_data: |
| 71 |
aliases: ['ap-sniffer-data'] |
| 72 |
type: str |
| 73 |
description: Enable/disable sniffer on WiFi data frame |
| 74 |
choices: ['disable', 'enable'] |
| 75 |
ap_sniffer_mgmt_beacon: |
| 76 |
aliases: ['ap-sniffer-mgmt-beacon'] |
| 77 |
type: str |
| 78 |
description: Enable/disable sniffer on WiFi management Beacon frames |
| 79 |
choices: ['disable', 'enable'] |
| 80 |
ap_sniffer_mgmt_other: |
| 81 |
aliases: ['ap-sniffer-mgmt-other'] |
| 82 |
type: str |
| 83 |
description: Enable/disable sniffer on WiFi management other frames |
| 84 |
choices: ['disable', 'enable'] |
| 85 |
ap_sniffer_mgmt_probe: |
| 86 |
aliases: ['ap-sniffer-mgmt-probe'] |
| 87 |
type: str |
| 88 |
description: Enable/disable sniffer on WiFi management probe frames |
| 89 |
choices: ['disable', 'enable'] |
| 90 |
auto_power_high: |
| 91 |
aliases: ['auto-power-high'] |
| 92 |
type: int |
| 93 |
description: The upper bound of automatic transmit power adjustment in dBm |
| 94 |
auto_power_level: |
| 95 |
aliases: ['auto-power-level'] |
| 96 |
type: str |
| 97 |
description: Enable/disable automatic power-level adjustment to prevent co-channel interference |
| 98 |
choices: ['disable', 'enable'] |
| 99 |
auto_power_low: |
| 100 |
aliases: ['auto-power-low'] |
| 101 |
type: int |
| 102 |
description: The lower bound of automatic transmit power adjustment in dBm |
| 103 |
band: |
| 104 |
type: str |
| 105 |
description: WiFi band that Radio 3 operates on. |
| 106 |
choices: ['802.11b', '802.11a', '802.11g', '802.11n', '802.11ac', '802.11n-5G', |
| 107 |
'802.11ax-5G', '802.11ax', '802.11g-only', '802.11n-only', |
| 108 |
'802.11n,g-only', '802.11ac-only', '802.11ac,n-only', '802.11n-5G-only', |
| 109 |
'802.11ax-5G-only', '802.11ax,ac-only', '802.11ax,ac,n-only', |
| 110 |
'802.11ax-only', '802.11ax,n-only', '802.11ax,n,g-only', '802.11ac-2G', |
| 111 |
'802.11ax-6G', '802.11n-2G', '802.11ac-5G', '802.11ax-2G', |
| 112 |
'802.11be-2G', '802.11be-5G', '802.11be-6G'] |
| 113 |
band_5g_type: |
| 114 |
aliases: ['band-5g-type'] |
| 115 |
type: str |
| 116 |
description: WiFi 5G band type. |
| 117 |
choices: ['5g-full', '5g-high', '5g-low'] |
| 118 |
bandwidth_admission_control: |
| 119 |
aliases: ['bandwidth-admission-control'] |
| 120 |
type: str |
| 121 |
description: Enable/disable WiFi multimedia |
| 122 |
choices: ['disable', 'enable'] |
| 123 |
bandwidth_capacity: |
| 124 |
aliases: ['bandwidth-capacity'] |
| 125 |
type: int |
| 126 |
description: Maximum bandwidth capacity allowed |
| 127 |
beacon_interval: |
| 128 |
aliases: ['beacon-interval'] |
| 129 |
type: int |
| 130 |
description: Beacon interval. |
| 131 |
call_admission_control: |
| 132 |
aliases: ['call-admission-control'] |
| 133 |
type: str |
| 134 |
description: Enable/disable WiFi multimedia |
| 135 |
choices: ['disable', 'enable'] |
| 136 |
call_capacity: |
| 137 |
aliases: ['call-capacity'] |
| 138 |
type: int |
| 139 |
description: Maximum number of Voice over WLAN |
| 140 |
channel: |
| 141 |
type: raw |
| 142 |
description: (list) Selected list of wireless radio channels. |
| 143 |
channel_bonding: |
| 144 |
aliases: ['channel-bonding'] |
| 145 |
type: str |
| 146 |
description: Channel bandwidth |
| 147 |
choices: ['80MHz', '40MHz', '20MHz', '160MHz', '320MHz', '240MHz'] |
| 148 |
channel_utilization: |
| 149 |
aliases: ['channel-utilization'] |
| 150 |
type: str |
| 151 |
description: Enable/disable measuring channel utilization. |
| 152 |
choices: ['disable', 'enable'] |
| 153 |
coexistence: |
| 154 |
type: str |
| 155 |
description: Enable/disable allowing both HT20 and HT40 on the same radio |
| 156 |
choices: ['disable', 'enable'] |
| 157 |
darrp: |
| 158 |
type: str |
| 159 |
description: Enable/disable Distributed Automatic Radio Resource Provisioning |
| 160 |
choices: ['disable', 'enable'] |
| 161 |
dtim: |
| 162 |
type: int |
| 163 |
description: Delivery Traffic Indication Map |
| 164 |
frag_threshold: |
| 165 |
aliases: ['frag-threshold'] |
| 166 |
type: int |
| 167 |
description: Maximum packet size that can be sent without fragmentation |
| 168 |
frequency_handoff: |
| 169 |
aliases: ['frequency-handoff'] |
| 170 |
type: str |
| 171 |
description: Enable/disable frequency handoff of clients to other channels |
| 172 |
choices: ['disable', 'enable'] |
| 173 |
max_clients: |
| 174 |
aliases: ['max-clients'] |
| 175 |
type: int |
| 176 |
description: Maximum number of stations |
| 177 |
max_distance: |
| 178 |
aliases: ['max-distance'] |
| 179 |
type: int |
| 180 |
description: Maximum expected distance between the AP and clients |
| 181 |
mode: |
| 182 |
type: str |
| 183 |
description: Mode of radio 3. |
| 184 |
choices: ['ap', 'monitor', 'sniffer', 'disabled', 'sam'] |
| 185 |
power_level: |
| 186 |
aliases: ['power-level'] |
| 187 |
type: int |
| 188 |
description: Radio power level as a percentage of the maximum transmit power |
| 189 |
powersave_optimize: |
| 190 |
aliases: ['powersave-optimize'] |
| 191 |
type: list |
| 192 |
elements: str |
| 193 |
description: Enable client power-saving features such as TIM, AC VO, and OBSS etc. |
| 194 |
choices: ['tim', 'ac-vo', 'no-obss-scan', 'no-11b-rate', 'client-rate-follow'] |
| 195 |
protection_mode: |
| 196 |
aliases: ['protection-mode'] |
| 197 |
type: str |
| 198 |
description: Enable/disable 802. |
| 199 |
choices: ['rtscts', 'ctsonly', 'disable'] |
| 200 |
radio_id: |
| 201 |
aliases: ['radio-id'] |
| 202 |
type: int |
| 203 |
description: Radio id. |
| 204 |
rts_threshold: |
| 205 |
aliases: ['rts-threshold'] |
| 206 |
type: int |
| 207 |
description: Maximum packet size for RTS transmissions, specifying the maximum size of a data packet before RTS/CTS |
| 208 |
short_guard_interval: |
| 209 |
aliases: ['short-guard-interval'] |
| 210 |
type: str |
| 211 |
description: Use either the short guard interval |
| 212 |
choices: ['disable', 'enable'] |
| 213 |
spectrum_analysis: |
| 214 |
aliases: ['spectrum-analysis'] |
| 215 |
type: str |
| 216 |
description: Enable/disable spectrum analysis to find interference that would negatively impact wireless performance. |
| 217 |
choices: ['disable', 'enable', 'scan-only'] |
| 218 |
transmit_optimize: |
| 219 |
aliases: ['transmit-optimize'] |
| 220 |
type: list |
| 221 |
elements: str |
| 222 |
description: Packet transmission optimization options including power saving, aggregation limiting, retry limiting, etc. |
| 223 |
choices: ['disable', 'power-save', 'aggr-limit', 'retry-limit', 'send-bar'] |
| 224 |
vap_all: |
| 225 |
aliases: ['vap-all'] |
| 226 |
type: str |
| 227 |
description: Enable/disable the automatic inheritance of all Virtual Access Points |
| 228 |
choices: ['disable', 'enable', 'tunnel', 'bridge', 'manual'] |
| 229 |
vaps: |
| 230 |
type: raw |
| 231 |
description: (list or str) Manually selected list of Virtual Access Points |
| 232 |
wids_profile: |
| 233 |
aliases: ['wids-profile'] |
| 234 |
type: str |
| 235 |
description: Wireless Intrusion Detection System |
| 236 |
zero_wait_dfs: |
| 237 |
aliases: ['zero-wait-dfs'] |
| 238 |
type: str |
| 239 |
description: Enable/disable zero wait DFS on radio |
| 240 |
choices: ['disable', 'enable'] |
| 241 |
vap1: |
| 242 |
type: str |
| 243 |
description: Virtual Access Point |
| 244 |
vap2: |
| 245 |
type: str |
| 246 |
description: Virtual Access Point |
| 247 |
vap3: |
| 248 |
type: str |
| 249 |
description: Virtual Access Point |
| 250 |
vap4: |
| 251 |
type: str |
| 252 |
description: Virtual Access Point |
| 253 |
vap5: |
| 254 |
type: str |
| 255 |
description: Virtual Access Point |
| 256 |
vap6: |
| 257 |
type: str |
| 258 |
description: Virtual Access Point |
| 259 |
vap7: |
| 260 |
type: str |
| 261 |
description: Virtual Access Point |
| 262 |
vap8: |
| 263 |
type: str |
| 264 |
description: Virtual Access Point |
| 265 |
bss_color: |
| 266 |
aliases: ['bss-color'] |
| 267 |
type: int |
| 268 |
description: BSS color value for this 11ax radio |
| 269 |
auto_power_target: |
| 270 |
aliases: ['auto-power-target'] |
| 271 |
type: str |
| 272 |
description: The target of automatic transmit power adjustment in dBm. |
| 273 |
drma: |
| 274 |
type: str |
| 275 |
description: Enable/disable dynamic radio mode assignment |
| 276 |
choices: ['disable', 'enable'] |
| 277 |
drma_sensitivity: |
| 278 |
aliases: ['drma-sensitivity'] |
| 279 |
type: str |
| 280 |
description: Network Coverage Factor |
| 281 |
choices: ['low', 'medium', 'high'] |
| 282 |
iperf_protocol: |
| 283 |
aliases: ['iperf-protocol'] |
| 284 |
type: str |
| 285 |
description: Iperf test protocol |
| 286 |
choices: ['udp', 'tcp'] |
| 287 |
iperf_server_port: |
| 288 |
aliases: ['iperf-server-port'] |
| 289 |
type: int |
| 290 |
description: Iperf service port number. |
| 291 |
power_mode: |
| 292 |
aliases: ['power-mode'] |
| 293 |
type: str |
| 294 |
description: Set radio effective isotropic radiated power |
| 295 |
choices: ['dBm', 'percentage'] |
| 296 |
power_value: |
| 297 |
aliases: ['power-value'] |
| 298 |
type: int |
| 299 |
description: Radio EIRP power in dBm |
| 300 |
sam_bssid: |
| 301 |
aliases: ['sam-bssid'] |
| 302 |
type: str |
| 303 |
description: BSSID for WiFi network. |
| 304 |
sam_captive_portal: |
| 305 |
aliases: ['sam-captive-portal'] |
| 306 |
type: str |
| 307 |
description: Enable/disable Captive Portal Authentication |
| 308 |
choices: ['disable', 'enable'] |
| 309 |
sam_password: |
| 310 |
aliases: ['sam-password'] |
| 311 |
type: raw |
| 312 |
description: (list) Passphrase for WiFi network connection. |
| 313 |
sam_report_intv: |
| 314 |
aliases: ['sam-report-intv'] |
| 315 |
type: int |
| 316 |
description: SAM report interval |
| 317 |
sam_security_type: |
| 318 |
aliases: ['sam-security-type'] |
| 319 |
type: str |
| 320 |
description: Select WiFi network security type |
| 321 |
choices: ['open', 'wpa-personal', 'wpa-enterprise', 'owe', 'wpa3-sae'] |
| 322 |
sam_server: |
| 323 |
aliases: ['sam-server'] |
| 324 |
type: str |
| 325 |
description: SAM test server IP address or domain name. |
| 326 |
sam_ssid: |
| 327 |
aliases: ['sam-ssid'] |
| 328 |
type: str |
| 329 |
description: SSID for WiFi network. |
| 330 |
sam_test: |
| 331 |
aliases: ['sam-test'] |
| 332 |
type: str |
| 333 |
description: Select SAM test type |
| 334 |
choices: ['ping', 'iperf'] |
| 335 |
sam_username: |
| 336 |
aliases: ['sam-username'] |
| 337 |
type: str |
| 338 |
description: Username for WiFi network connection. |
| 339 |
arrp_profile: |
| 340 |
aliases: ['arrp-profile'] |
| 341 |
type: str |
| 342 |
description: Distributed Automatic Radio Resource Provisioning |
| 343 |
bss_color_mode: |
| 344 |
aliases: ['bss-color-mode'] |
| 345 |
type: str |
| 346 |
description: BSS color mode for this 11ax radio |
| 347 |
choices: ['auto', 'static'] |
| 348 |
sam_cwp_failure_string: |
| 349 |
aliases: ['sam-cwp-failure-string'] |
| 350 |
type: str |
| 351 |
description: Failure identification on the page after an incorrect login. |
| 352 |
sam_cwp_match_string: |
| 353 |
aliases: ['sam-cwp-match-string'] |
| 354 |
type: str |
| 355 |
description: Identification string from the captive portal login form. |
| 356 |
sam_cwp_password: |
| 357 |
aliases: ['sam-cwp-password'] |
| 358 |
type: raw |
| 359 |
description: (list) Password for captive portal authentication. |
| 360 |
sam_cwp_success_string: |
| 361 |
aliases: ['sam-cwp-success-string'] |
| 362 |
type: str |
| 363 |
description: Success identification on the page after a successful login. |
| 364 |
sam_cwp_test_url: |
| 365 |
aliases: ['sam-cwp-test-url'] |
| 366 |
type: str |
| 367 |
description: Website the client is trying to access. |
| 368 |
sam_cwp_username: |
| 369 |
aliases: ['sam-cwp-username'] |
| 370 |
type: str |
| 371 |
description: Username for captive portal authentication. |
| 372 |
sam_server_fqdn: |
| 373 |
aliases: ['sam-server-fqdn'] |
| 374 |
type: str |
| 375 |
description: SAM test server domain name. |
| 376 |
sam_server_ip: |
| 377 |
aliases: ['sam-server-ip'] |
| 378 |
type: str |
| 379 |
description: SAM test server IP address. |
| 380 |
sam_server_type: |
| 381 |
aliases: ['sam-server-type'] |
| 382 |
type: str |
| 383 |
description: Select SAM server type |
| 384 |
choices: ['ip', 'fqdn'] |
| 385 |
d80211d: |
| 386 |
aliases: ['80211d'] |
| 387 |
type: str |
| 388 |
description: Enable/disable 802. |
| 389 |
choices: ['disable', 'enable'] |
| 390 |
optional_antenna: |
| 391 |
aliases: ['optional-antenna'] |
| 392 |
type: str |
| 393 |
description: Optional antenna used on FAP |
| 394 |
choices: ['none', 'FANT-04ABGN-0606-O-N', 'FANT-04ABGN-1414-P-N', |
| 395 |
'FANT-04ABGN-8065-P-N', 'FANT-04ABGN-0606-O-R', 'FANT-04ABGN-0606-P-R', |
| 396 |
'FANT-10ACAX-1213-D-N', 'FANT-08ABGN-1213-D-R', 'custom', |
| 397 |
'FANT-04BEAX-0606-P-R'] |
| 398 |
mimo_mode: |
| 399 |
aliases: ['mimo-mode'] |
| 400 |
type: str |
| 401 |
description: Configure radio MIMO mode |
| 402 |
choices: ['default', '1x1', '2x2', '3x3', '4x4', '8x8'] |
| 403 |
optional_antenna_gain: |
| 404 |
aliases: ['optional-antenna-gain'] |
| 405 |
type: str |
| 406 |
description: Optional antenna gain in dBi |
| 407 |
sam_ca_certificate: |
| 408 |
aliases: ['sam-ca-certificate'] |
| 409 |
type: str |
| 410 |
description: CA certificate for WPA2/WPA3-ENTERPRISE. |
| 411 |
sam_client_certificate: |
| 412 |
aliases: ['sam-client-certificate'] |
| 413 |
type: str |
| 414 |
description: Client certificate for WPA2/WPA3-ENTERPRISE. |
| 415 |
sam_eap_method: |
| 416 |
aliases: ['sam-eap-method'] |
| 417 |
type: str |
| 418 |
description: Select WPA2/WPA3-ENTERPRISE EAP Method |
| 419 |
choices: ['tls', 'peap', 'both'] |
| 420 |
sam_private_key: |
| 421 |
aliases: ['sam-private-key'] |
| 422 |
type: str |
| 423 |
description: Private key for WPA2/WPA3-ENTERPRISE. |
| 424 |
sam_private_key_password: |
| 425 |
aliases: ['sam-private-key-password'] |
| 426 |
type: raw |
| 427 |
description: (list) Password for private key file for WPA2/WPA3-ENTERPRISE. |
| 428 |
channel_bonding_ext: |
| 429 |
aliases: ['channel-bonding-ext'] |
| 430 |
type: str |
| 431 |
description: Channel bandwidth extension |
| 432 |
choices: ['320MHz-1', '320MHz-2'] |
| 433 |
d80211mc: |
| 434 |
aliases: ['80211mc'] |
| 435 |
type: str |
| 436 |
description: Enable/disable 802. |
| 437 |
choices: ['disable', 'enable'] |
| 438 |
ap_sniffer_chan_width: |
| 439 |
aliases: ['ap-sniffer-chan-width'] |
| 440 |
type: str |
| 441 |
description: Channel bandwidth for sniffer. |
| 442 |
choices: ['320MHz', '240MHz', '160MHz', '80MHz', '40MHz', '20MHz'] |
| 443 |
ai_darrp_support: |
| 444 |
aliases: ['ai-darrp-support'] |
| 445 |
type: str |
| 446 |
description: Enable/disable support for FortiAIOps to retrieve Distributed Automatic Radio Resource Provisioning |
| 447 |
choices: ['disable', 'enable'] |
| 448 |
''' |
| 449 |
|
| 450 |
EXAMPLES = ''' |
| 451 |
- name: Example playbook (generated based on argument schema) |
| 452 |
hosts: fortimanagers |
| 453 |
connection: httpapi |
| 454 |
gather_facts: false |
| 455 |
tasks: |
| 456 |
- name: Configuration options for radio 4. |
| 457 |
fortinet.fortimanager.fmgr_wtpprofile_radio4: |
| 458 |
# workspace_locking_adom: <global or your adom name> |
| 459 |
adom: <your own value> |
| 460 |
wtp_profile: <your own value> |
| 461 |
wtpprofile_radio4: |
| 462 |
# airtime_fairness: <value in [disable, enable]> |
| 463 |
# amsdu: <value in [disable, enable]> |
| 464 |
# ap_handoff: <value in [disable, enable]> |
| 465 |
# ap_sniffer_addr: <string> |
| 466 |
# ap_sniffer_bufsize: <integer> |
| 467 |
# ap_sniffer_chan: <integer> |
| 468 |
# ap_sniffer_ctl: <value in [disable, enable]> |
| 469 |
# ap_sniffer_data: <value in [disable, enable]> |
| 470 |
# ap_sniffer_mgmt_beacon: <value in [disable, enable]> |
| 471 |
# ap_sniffer_mgmt_other: <value in [disable, enable]> |
| 472 |
# ap_sniffer_mgmt_probe: <value in [disable, enable]> |
| 473 |
# auto_power_high: <integer> |
| 474 |
# auto_power_level: <value in [disable, enable]> |
| 475 |
# auto_power_low: <integer> |
| 476 |
# band: <value in [802.11b, 802.11a, 802.11g, ...]> |
| 477 |
# band_5g_type: <value in [5g-full, 5g-high, 5g-low]> |
| 478 |
# bandwidth_admission_control: <value in [disable, enable]> |
| 479 |
# bandwidth_capacity: <integer> |
| 480 |
# beacon_interval: <integer> |
| 481 |
# call_admission_control: <value in [disable, enable]> |
| 482 |
# call_capacity: <integer> |
| 483 |
# channel: <list or string> |
| 484 |
# channel_bonding: <value in [80MHz, 40MHz, 20MHz, ...]> |
| 485 |
# channel_utilization: <value in [disable, enable]> |
| 486 |
# coexistence: <value in [disable, enable]> |
| 487 |
# darrp: <value in [disable, enable]> |
| 488 |
# dtim: <integer> |
| 489 |
# frag_threshold: <integer> |
| 490 |
# frequency_handoff: <value in [disable, enable]> |
| 491 |
# max_clients: <integer> |
| 492 |
# max_distance: <integer> |
| 493 |
# mode: <value in [ap, monitor, sniffer, ...]> |
| 494 |
# power_level: <integer> |
| 495 |
# powersave_optimize: ["tim", "ac-vo", "no-obss-scan", "no-11b-rate", |
| 496 |
# "client-rate-follow"] |
| 497 |
# protection_mode: <value in [rtscts, ctsonly, disable]> |
| 498 |
# radio_id: <integer> |
| 499 |
# rts_threshold: <integer> |
| 500 |
# short_guard_interval: <value in [disable, enable]> |
| 501 |
# spectrum_analysis: <value in [disable, enable, scan-only]> |
| 502 |
# transmit_optimize: ["disable", "power-save", "aggr-limit", "retry-limit", "send-bar"] |
| 503 |
# vap_all: <value in [disable, enable, tunnel, ...]> |
| 504 |
# vaps: <list or string> |
| 505 |
# wids_profile: <string> |
| 506 |
# zero_wait_dfs: <value in [disable, enable]> |
| 507 |
# vap1: <string> |
| 508 |
# vap2: <string> |
| 509 |
# vap3: <string> |
| 510 |
# vap4: <string> |
| 511 |
# vap5: <string> |
| 512 |
# vap6: <string> |
| 513 |
# vap7: <string> |
| 514 |
# vap8: <string> |
| 515 |
# bss_color: <integer> |
| 516 |
# auto_power_target: <string> |
| 517 |
# drma: <value in [disable, enable]> |
| 518 |
# drma_sensitivity: <value in [low, medium, high]> |
| 519 |
# iperf_protocol: <value in [udp, tcp]> |
| 520 |
# iperf_server_port: <integer> |
| 521 |
# power_mode: <value in [dBm, percentage]> |
| 522 |
# power_value: <integer> |
| 523 |
# sam_bssid: <string> |
| 524 |
# sam_captive_portal: <value in [disable, enable]> |
| 525 |
# sam_password: <list or string> |
| 526 |
# sam_report_intv: <integer> |
| 527 |
# sam_security_type: <value in [open, wpa-personal, wpa-enterprise, ...]> |
| 528 |
# sam_server: <string> |
| 529 |
# sam_ssid: <string> |
| 530 |
# sam_test: <value in [ping, iperf]> |
| 531 |
# sam_username: <string> |
| 532 |
# arrp_profile: <string> |
| 533 |
# bss_color_mode: <value in [auto, static]> |
| 534 |
# sam_cwp_failure_string: <string> |
| 535 |
# sam_cwp_match_string: <string> |
| 536 |
# sam_cwp_password: <list or string> |
| 537 |
# sam_cwp_success_string: <string> |
| 538 |
# sam_cwp_test_url: <string> |
| 539 |
# sam_cwp_username: <string> |
| 540 |
# sam_server_fqdn: <string> |
| 541 |
# sam_server_ip: <string> |
| 542 |
# sam_server_type: <value in [ip, fqdn]> |
| 543 |
# d80211d: <value in [disable, enable]> |
| 544 |
# optional_antenna: <value in [none, FANT-04ABGN-0606-O-N, FANT-04ABGN-1414-P-N, ...]> |
| 545 |
# mimo_mode: <value in [default, 1x1, 2x2, ...]> |
| 546 |
# optional_antenna_gain: <string> |
| 547 |
# sam_ca_certificate: <string> |
| 548 |
# sam_client_certificate: <string> |
| 549 |
# sam_eap_method: <value in [tls, peap, both]> |
| 550 |
# sam_private_key: <string> |
| 551 |
# sam_private_key_password: <list or string> |
| 552 |
# channel_bonding_ext: <value in [320MHz-1, 320MHz-2]> |
| 553 |
# d80211mc: <value in [disable, enable]> |
| 554 |
# ap_sniffer_chan_width: <value in [320MHz, 240MHz, 160MHz, ...]> |
| 555 |
# ai_darrp_support: <value in [disable, enable]> |
| 556 |
''' |
| 557 |
|
| 558 |
RETURN = ''' |
| 559 |
meta: |
| 560 |
description: The result of the request. |
| 561 |
type: dict |
| 562 |
returned: always |
| 563 |
contains: |
| 564 |
request_url: |
| 565 |
description: The full url requested. |
| 566 |
returned: always |
| 567 |
type: str |
| 568 |
sample: /sys/login/user |
| 569 |
response_code: |
| 570 |
description: The status of api request. |
| 571 |
returned: always |
| 572 |
type: int |
| 573 |
sample: 0 |
| 574 |
response_data: |
| 575 |
description: The api response. |
| 576 |
type: list |
| 577 |
returned: always |
| 578 |
response_message: |
| 579 |
description: The descriptive message of the api response. |
| 580 |
type: str |
| 581 |
returned: always |
| 582 |
sample: OK. |
| 583 |
system_information: |
| 584 |
description: The information of the target system. |
| 585 |
type: dict |
| 586 |
returned: always |
| 587 |
rc: |
| 588 |
description: The status the request. |
| 589 |
type: int |
| 590 |
returned: always |
| 591 |
sample: 0 |
| 592 |
version_check_warning: |
| 593 |
description: Warning if the parameters used in the playbook are not supported by the current FortiManager version. |
| 594 |
type: list |
| 595 |
returned: complex |
| 596 |
''' |
| 597 |
from ansible.module_utils.basic import AnsibleModule |
| 598 |
from ansible.module_utils.connection import Connection |
| 599 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass |
| 600 |
from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec |
| 601 |
|
| 602 |
|
| 603 |
def main(): |
| 604 |
urls_list = [ |
| 605 |
'/pm/config/adom/{adom}/obj/wireless-controller/wtp-profile/{wtp-profile}/radio-4', |
| 606 |
'/pm/config/global/obj/wireless-controller/wtp-profile/{wtp-profile}/radio-4' |
| 607 |
] |
| 608 |
module_arg_spec = { |
| 609 |
'adom': {'required': True, 'type': 'str'}, |
| 610 |
'wtp-profile': {'type': 'str', 'api_name': 'wtp_profile'}, |
| 611 |
'wtp_profile': {'type': 'str'}, |
| 612 |
'revision_note': {'type': 'str'}, |
| 613 |
'wtpprofile_radio4': { |
| 614 |
'type': 'dict', 'v_range': [['6.2.5', '']], |
| 615 |
'options': { |
| 616 |
'airtime-fairness': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 617 |
'amsdu': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 618 |
'ap-handoff': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 619 |
'ap-sniffer-addr': {'v_range': [['6.2.5', '']], 'type': 'str'}, |
| 620 |
'ap-sniffer-bufsize': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 621 |
'ap-sniffer-chan': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 622 |
'ap-sniffer-ctl': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 623 |
'ap-sniffer-data': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 624 |
'ap-sniffer-mgmt-beacon': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 625 |
'ap-sniffer-mgmt-other': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 626 |
'ap-sniffer-mgmt-probe': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 627 |
'auto-power-high': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 628 |
'auto-power-level': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 629 |
'auto-power-low': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 630 |
'band': { |
| 631 |
'v_range': [['6.2.5', '']], |
| 632 |
'choices': [ |
| 633 |
'802.11b', '802.11a', '802.11g', '802.11n', '802.11ac', '802.11n-5G', '802.11ax-5G', '802.11ax', '802.11g-only', '802.11n-only', |
| 634 |
'802.11n,g-only', '802.11ac-only', '802.11ac,n-only', '802.11n-5G-only', '802.11ax-5G-only', '802.11ax,ac-only', |
| 635 |
'802.11ax,ac,n-only', '802.11ax-only', '802.11ax,n-only', '802.11ax,n,g-only', '802.11ac-2G', '802.11ax-6G', '802.11n-2G', |
| 636 |
'802.11ac-5G', '802.11ax-2G', '802.11be-2G', '802.11be-5G', '802.11be-6G' |
| 637 |
], |
| 638 |
'type': 'str' |
| 639 |
}, |
| 640 |
'band-5g-type': {'v_range': [['6.2.5', '']], 'choices': ['5g-full', '5g-high', '5g-low'], 'type': 'str'}, |
| 641 |
'bandwidth-admission-control': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 642 |
'bandwidth-capacity': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 643 |
'beacon-interval': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 644 |
'call-admission-control': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 645 |
'call-capacity': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 646 |
'channel': {'v_range': [['6.2.5', '']], 'type': 'raw'}, |
| 647 |
'channel-bonding': {'v_range': [['6.2.5', '']], 'choices': ['80MHz', '40MHz', '20MHz', '160MHz', '320MHz', '240MHz'], 'type': 'str'}, |
| 648 |
'channel-utilization': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 649 |
'coexistence': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 650 |
'darrp': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 651 |
'dtim': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 652 |
'frag-threshold': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 653 |
'frequency-handoff': {'v_range': [['6.2.5', '6.2.13'], ['6.4.1', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 654 |
'max-clients': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 655 |
'max-distance': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 656 |
'mode': {'v_range': [['6.2.5', '']], 'choices': ['ap', 'monitor', 'sniffer', 'disabled', 'sam'], 'type': 'str'}, |
| 657 |
'power-level': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 658 |
'powersave-optimize': { |
| 659 |
'v_range': [['6.2.5', '']], |
| 660 |
'type': 'list', |
| 661 |
'choices': ['tim', 'ac-vo', 'no-obss-scan', 'no-11b-rate', 'client-rate-follow'], |
| 662 |
'elements': 'str' |
| 663 |
}, |
| 664 |
'protection-mode': {'v_range': [['6.2.5', '']], 'choices': ['rtscts', 'ctsonly', 'disable'], 'type': 'str'}, |
| 665 |
'radio-id': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 666 |
'rts-threshold': {'v_range': [['6.2.5', '']], 'type': 'int'}, |
| 667 |
'short-guard-interval': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 668 |
'spectrum-analysis': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable', 'scan-only'], 'type': 'str'}, |
| 669 |
'transmit-optimize': { |
| 670 |
'v_range': [['6.2.5', '']], |
| 671 |
'type': 'list', |
| 672 |
'choices': ['disable', 'power-save', 'aggr-limit', 'retry-limit', 'send-bar'], |
| 673 |
'elements': 'str' |
| 674 |
}, |
| 675 |
'vap-all': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable', 'tunnel', 'bridge', 'manual'], 'type': 'str'}, |
| 676 |
'vaps': {'v_range': [['6.2.5', '']], 'type': 'raw'}, |
| 677 |
'wids-profile': {'v_range': [['6.2.5', '']], 'type': 'str'}, |
| 678 |
'zero-wait-dfs': {'v_range': [['6.2.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 679 |
'vap1': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 680 |
'vap2': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 681 |
'vap3': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 682 |
'vap4': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 683 |
'vap5': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 684 |
'vap6': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 685 |
'vap7': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 686 |
'vap8': {'v_range': [['6.4.0', '']], 'type': 'str'}, |
| 687 |
'bss-color': {'v_range': [['6.4.2', '']], 'type': 'int'}, |
| 688 |
'auto-power-target': {'v_range': [['6.4.3', '']], 'type': 'str'}, |
| 689 |
'drma': {'v_range': [['6.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 690 |
'drma-sensitivity': {'v_range': [['6.4.3', '']], 'choices': ['low', 'medium', 'high'], 'type': 'str'}, |
| 691 |
'iperf-protocol': {'v_range': [['7.0.0', '']], 'choices': ['udp', 'tcp'], 'type': 'str'}, |
| 692 |
'iperf-server-port': {'v_range': [['7.0.0', '']], 'type': 'int'}, |
| 693 |
'power-mode': {'v_range': [['7.0.0', '']], 'choices': ['dBm', 'percentage'], 'type': 'str'}, |
| 694 |
'power-value': {'v_range': [['7.0.0', '']], 'type': 'int'}, |
| 695 |
'sam-bssid': {'v_range': [['7.0.0', '']], 'type': 'str'}, |
| 696 |
'sam-captive-portal': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 697 |
'sam-password': {'v_range': [['7.0.0', '']], 'no_log': True, 'type': 'raw'}, |
| 698 |
'sam-report-intv': {'v_range': [['7.0.0', '']], 'type': 'int'}, |
| 699 |
'sam-security-type': {'v_range': [['7.0.0', '']], 'choices': ['open', 'wpa-personal', 'wpa-enterprise', 'owe', 'wpa3-sae'], 'type': 'str'}, |
| 700 |
'sam-server': {'v_range': [['7.0.0', '']], 'type': 'str'}, |
| 701 |
'sam-ssid': {'v_range': [['7.0.0', '']], 'type': 'str'}, |
| 702 |
'sam-test': {'v_range': [['7.0.0', '']], 'choices': ['ping', 'iperf'], 'type': 'str'}, |
| 703 |
'sam-username': {'v_range': [['7.0.0', '']], 'type': 'str'}, |
| 704 |
'arrp-profile': {'v_range': [['7.0.3', '']], 'type': 'str'}, |
| 705 |
'bss-color-mode': {'v_range': [['7.0.2', '']], 'choices': ['auto', 'static'], 'type': 'str'}, |
| 706 |
'sam-cwp-failure-string': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 707 |
'sam-cwp-match-string': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 708 |
'sam-cwp-password': {'v_range': [['7.0.1', '']], 'no_log': True, 'type': 'raw'}, |
| 709 |
'sam-cwp-success-string': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 710 |
'sam-cwp-test-url': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 711 |
'sam-cwp-username': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 712 |
'sam-server-fqdn': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 713 |
'sam-server-ip': {'v_range': [['7.0.1', '']], 'type': 'str'}, |
| 714 |
'sam-server-type': {'v_range': [['7.0.1', '']], 'choices': ['ip', 'fqdn'], 'type': 'str'}, |
| 715 |
'80211d': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 716 |
'optional-antenna': { |
| 717 |
'v_range': [['7.2.3', '']], |
| 718 |
'choices': [ |
| 719 |
'none', 'FANT-04ABGN-0606-O-N', 'FANT-04ABGN-1414-P-N', 'FANT-04ABGN-8065-P-N', 'FANT-04ABGN-0606-O-R', 'FANT-04ABGN-0606-P-R', |
| 720 |
'FANT-10ACAX-1213-D-N', 'FANT-08ABGN-1213-D-R', 'custom', 'FANT-04BEAX-0606-P-R' |
| 721 |
], |
| 722 |
'type': 'str' |
| 723 |
}, |
| 724 |
'mimo-mode': {'v_range': [['7.4.1', '']], 'choices': ['default', '1x1', '2x2', '3x3', '4x4', '8x8'], 'type': 'str'}, |
| 725 |
'optional-antenna-gain': {'v_range': [['7.4.2', '']], 'type': 'str'}, |
| 726 |
'sam-ca-certificate': {'v_range': [['7.4.2', '']], 'type': 'str'}, |
| 727 |
'sam-client-certificate': {'v_range': [['7.4.2', '']], 'type': 'str'}, |
| 728 |
'sam-eap-method': {'v_range': [['7.4.2', '']], 'choices': ['tls', 'peap', 'both'], 'type': 'str'}, |
| 729 |
'sam-private-key': {'v_range': [['7.4.2', '']], 'no_log': True, 'type': 'str'}, |
| 730 |
'sam-private-key-password': {'v_range': [['7.4.2', '']], 'no_log': True, 'type': 'raw'}, |
| 731 |
'channel-bonding-ext': {'v_range': [['7.4.3', '']], 'choices': ['320MHz-1', '320MHz-2'], 'type': 'str'}, |
| 732 |
'80211mc': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}, |
| 733 |
'ap-sniffer-chan-width': {'v_range': [['7.4.4', '']], 'choices': ['320MHz', '240MHz', '160MHz', '80MHz', '40MHz', '20MHz'], 'type': 'str'}, |
| 734 |
'ai-darrp-support': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'} |
| 735 |
} |
| 736 |
} |
| 737 |
} |
| 738 |
|
| 739 |
module_option_spec = get_module_arg_spec('partial crud') |
| 740 |
module_arg_spec.update(module_option_spec) |
| 741 |
check_galaxy_version(module_arg_spec) |
| 742 |
module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'wtpprofile_radio4'), |
| 743 |
supports_check_mode=True) |
| 744 |
if not module._socket_path: |
| 745 |
module.fail_json(msg='MUST RUN IN HTTPAPI MODE') |
| 746 |
connection = Connection(module._socket_path) |
| 747 |
fmgr = NAPIManager('partial crud', module_arg_spec, urls_list, |
| 748 |
None, 'data', module, connection) |
| 749 |
fmgr.process_partial_crud() |
| 750 |
module.exit_json(meta=module.params) |
| 751 |
|
| 752 |
|
| 753 |
if __name__ == '__main__': |
| 754 |
main() |