Debian Codegraph @

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