Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_wtpprofile_radio3.py

raw symbols SCIP
1 #!/usr/bin/python
2 from __future__ import absolute_import, division, print_function
3 # Copyright 2019-2024 Fortinet, Inc.
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
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_radio3
15 short_description: Configuration options for radio 3.
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_radio3:
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 bandwidth_admission_control:
114 aliases: ['bandwidth-admission-control']
115 type: str
116 description: Enable/disable WiFi multimedia
117 choices: ['disable', 'enable']
118 bandwidth_capacity:
119 aliases: ['bandwidth-capacity']
120 type: int
121 description: Maximum bandwidth capacity allowed
122 beacon_interval:
123 aliases: ['beacon-interval']
124 type: int
125 description: Beacon interval.
126 call_admission_control:
127 aliases: ['call-admission-control']
128 type: str
129 description: Enable/disable WiFi multimedia
130 choices: ['disable', 'enable']
131 call_capacity:
132 aliases: ['call-capacity']
133 type: int
134 description: Maximum number of Voice over WLAN
135 channel:
136 type: raw
137 description: (list) Selected list of wireless radio channels.
138 channel_bonding:
139 aliases: ['channel-bonding']
140 type: str
141 description: Channel bandwidth
142 choices: ['80MHz', '40MHz', '20MHz', '160MHz', '320MHz', '240MHz']
143 channel_utilization:
144 aliases: ['channel-utilization']
145 type: str
146 description: Enable/disable measuring channel utilization.
147 choices: ['disable', 'enable']
148 coexistence:
149 type: str
150 description: Enable/disable allowing both HT20 and HT40 on the same radio
151 choices: ['disable', 'enable']
152 darrp:
153 type: str
154 description: Enable/disable Distributed Automatic Radio Resource Provisioning
155 choices: ['disable', 'enable']
156 dtim:
157 type: int
158 description: Delivery Traffic Indication Map
159 frag_threshold:
160 aliases: ['frag-threshold']
161 type: int
162 description: Maximum packet size that can be sent without fragmentation
163 frequency_handoff:
164 aliases: ['frequency-handoff']
165 type: str
166 description: Enable/disable frequency handoff of clients to other channels
167 choices: ['disable', 'enable']
168 max_clients:
169 aliases: ['max-clients']
170 type: int
171 description: Maximum number of stations
172 max_distance:
173 aliases: ['max-distance']
174 type: int
175 description: Maximum expected distance between the AP and clients
176 mode:
177 type: str
178 description: Mode of radio 3.
179 choices: ['disabled', 'ap', 'monitor', 'sniffer', 'sam']
180 power_level:
181 aliases: ['power-level']
182 type: int
183 description: Radio power level as a percentage of the maximum transmit power
184 powersave_optimize:
185 aliases: ['powersave-optimize']
186 type: list
187 elements: str
188 description: Enable client power-saving features such as TIM, AC VO, and OBSS etc.
189 choices: ['tim', 'ac-vo', 'no-obss-scan', 'no-11b-rate', 'client-rate-follow']
190 protection_mode:
191 aliases: ['protection-mode']
192 type: str
193 description: Enable/disable 802.
194 choices: ['rtscts', 'ctsonly', 'disable']
195 radio_id:
196 aliases: ['radio-id']
197 type: int
198 description: Radio id.
199 rts_threshold:
200 aliases: ['rts-threshold']
201 type: int
202 description: Maximum packet size for RTS transmissions, specifying the maximum size of a data packet before RTS/CTS
203 short_guard_interval:
204 aliases: ['short-guard-interval']
205 type: str
206 description: Use either the short guard interval
207 choices: ['disable', 'enable']
208 spectrum_analysis:
209 aliases: ['spectrum-analysis']
210 type: str
211 description: Enable/disable spectrum analysis to find interference that would negatively impact wireless performance.
212 choices: ['disable', 'enable', 'scan-only']
213 transmit_optimize:
214 aliases: ['transmit-optimize']
215 type: list
216 elements: str
217 description: Packet transmission optimization options including power saving, aggregation limiting, retry limiting, etc.
218 choices: ['disable', 'power-save', 'aggr-limit', 'retry-limit', 'send-bar']
219 vap_all:
220 aliases: ['vap-all']
221 type: str
222 description: Enable/disable the automatic inheritance of all Virtual Access Points
223 choices: ['disable', 'enable', 'tunnel', 'bridge', 'manual']
224 vaps:
225 type: raw
226 description: (list or str) Manually selected list of Virtual Access Points
227 wids_profile:
228 aliases: ['wids-profile']
229 type: str
230 description: Wireless Intrusion Detection System
231 band_5g_type:
232 aliases: ['band-5g-type']
233 type: str
234 description: WiFi 5G band type.
235 choices: ['5g-full', '5g-high', '5g-low']
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 3.
457 fortinet.fortimanager.fmgr_wtpprofile_radio3:
458 # workspace_locking_adom: <global or your adom name>
459 adom: <your own value>
460 wtp_profile: <your own value>
461 wtpprofile_radio3:
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 # bandwidth_admission_control: <value in [disable, enable]>
478 # bandwidth_capacity: <integer>
479 # beacon_interval: <integer>
480 # call_admission_control: <value in [disable, enable]>
481 # call_capacity: <integer>
482 # channel: <list or string>
483 # channel_bonding: <value in [80MHz, 40MHz, 20MHz, ...]>
484 # channel_utilization: <value in [disable, enable]>
485 # coexistence: <value in [disable, enable]>
486 # darrp: <value in [disable, enable]>
487 # dtim: <integer>
488 # frag_threshold: <integer>
489 # frequency_handoff: <value in [disable, enable]>
490 # max_clients: <integer>
491 # max_distance: <integer>
492 # mode: <value in [disabled, ap, monitor, ...]>
493 # power_level: <integer>
494 # powersave_optimize: ["tim", "ac-vo", "no-obss-scan", "no-11b-rate",
495 # "client-rate-follow"]
496 # protection_mode: <value in [rtscts, ctsonly, disable]>
497 # radio_id: <integer>
498 # rts_threshold: <integer>
499 # short_guard_interval: <value in [disable, enable]>
500 # spectrum_analysis: <value in [disable, enable, scan-only]>
501 # transmit_optimize: ["disable", "power-save", "aggr-limit", "retry-limit", "send-bar"]
502 # vap_all: <value in [disable, enable, tunnel, ...]>
503 # vaps: <list or string>
504 # wids_profile: <string>
505 # band_5g_type: <value in [5g-full, 5g-high, 5g-low]>
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-3',
606 '/pm/config/global/obj/wireless-controller/wtp-profile/{wtp-profile}/radio-3'
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_radio3': {
614 'type': 'dict', 'v_range': [['6.2.2', '']],
615 'options': {
616 'airtime-fairness': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
617 'amsdu': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
618 'ap-handoff': {'v_range': [['6.2.2', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'},
619 'ap-sniffer-addr': {'v_range': [['6.2.2', '']], 'type': 'str'},
620 'ap-sniffer-bufsize': {'v_range': [['6.2.2', '']], 'type': 'int'},
621 'ap-sniffer-chan': {'v_range': [['6.2.2', '']], 'type': 'int'},
622 'ap-sniffer-ctl': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
623 'ap-sniffer-data': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
624 'ap-sniffer-mgmt-beacon': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
625 'ap-sniffer-mgmt-other': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
626 'ap-sniffer-mgmt-probe': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
627 'auto-power-high': {'v_range': [['6.2.2', '']], 'type': 'int'},
628 'auto-power-level': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
629 'auto-power-low': {'v_range': [['6.2.2', '']], 'type': 'int'},
630 'band': {
631 'v_range': [['6.2.2', '']],
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 'bandwidth-admission-control': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
641 'bandwidth-capacity': {'v_range': [['6.2.2', '']], 'type': 'int'},
642 'beacon-interval': {'v_range': [['6.2.2', '']], 'type': 'int'},
643 'call-admission-control': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
644 'call-capacity': {'v_range': [['6.2.2', '']], 'type': 'int'},
645 'channel': {'v_range': [['6.2.2', '']], 'type': 'raw'},
646 'channel-bonding': {'v_range': [['6.2.2', '']], 'choices': ['80MHz', '40MHz', '20MHz', '160MHz', '320MHz', '240MHz'], 'type': 'str'},
647 'channel-utilization': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
648 'coexistence': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
649 'darrp': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
650 'dtim': {'v_range': [['6.2.2', '']], 'type': 'int'},
651 'frag-threshold': {'v_range': [['6.2.2', '']], 'type': 'int'},
652 'frequency-handoff': {'v_range': [['6.2.2', '7.6.2']], 'choices': ['disable', 'enable'], 'type': 'str'},
653 'max-clients': {'v_range': [['6.2.2', '']], 'type': 'int'},
654 'max-distance': {'v_range': [['6.2.2', '']], 'type': 'int'},
655 'mode': {'v_range': [['6.2.2', '']], 'choices': ['disabled', 'ap', 'monitor', 'sniffer', 'sam'], 'type': 'str'},
656 'power-level': {'v_range': [['6.2.2', '']], 'type': 'int'},
657 'powersave-optimize': {
658 'v_range': [['6.2.2', '']],
659 'type': 'list',
660 'choices': ['tim', 'ac-vo', 'no-obss-scan', 'no-11b-rate', 'client-rate-follow'],
661 'elements': 'str'
662 },
663 'protection-mode': {'v_range': [['6.2.2', '']], 'choices': ['rtscts', 'ctsonly', 'disable'], 'type': 'str'},
664 'radio-id': {'v_range': [['6.2.2', '']], 'type': 'int'},
665 'rts-threshold': {'v_range': [['6.2.2', '']], 'type': 'int'},
666 'short-guard-interval': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
667 'spectrum-analysis': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable', 'scan-only'], 'type': 'str'},
668 'transmit-optimize': {
669 'v_range': [['6.2.2', '']],
670 'type': 'list',
671 'choices': ['disable', 'power-save', 'aggr-limit', 'retry-limit', 'send-bar'],
672 'elements': 'str'
673 },
674 'vap-all': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable', 'tunnel', 'bridge', 'manual'], 'type': 'str'},
675 'vaps': {'v_range': [['6.2.2', '']], 'type': 'raw'},
676 'wids-profile': {'v_range': [['6.2.2', '']], 'type': 'str'},
677 'band-5g-type': {'v_range': [['6.2.5', '']], 'choices': ['5g-full', '5g-high', '5g-low'], '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_radio3'),
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()