Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_vap_dynamicmapping.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_vap_dynamicmapping
15 short_description: Configure Virtual Access Points
16 version_added: "2.0.0"
17 extends_documentation_fragment:
18 - fortinet.fortimanager.general
19 - fortinet.fortimanager.general.full_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 vap:
29 description: The parameter (vap) in requested url.
30 type: str
31 required: true
32 vap_dynamicmapping:
33 description: The top level parameters set.
34 required: false
35 type: dict
36 suboptions:
37 _centmgmt:
38 type: str
39 description: Centmgmt.
40 choices: ['disable', 'enable']
41 _dhcp_svr_id:
42 type: str
43 description: Dhcp svr id.
44 _intf_allowaccess:
45 type: list
46 elements: str
47 description: Intf allowaccess.
48 choices: ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'fgfm', 'auto-ipsec',
49 'radius-acct', 'probe-response', 'capwap', 'dnp', 'ftm', 'fabric',
50 'speed-test']
51 _intf_device_identification:
52 aliases: ['_intf_device-identification']
53 type: str
54 description: Intf device identification.
55 choices: ['disable', 'enable']
56 _intf_device_netscan:
57 aliases: ['_intf_device-netscan']
58 type: str
59 description: Intf device netscan.
60 choices: ['disable', 'enable']
61 _intf_dhcp_relay_ip:
62 aliases: ['_intf_dhcp-relay-ip']
63 type: raw
64 description: (list) Intf dhcp relay ip.
65 _intf_dhcp_relay_service:
66 aliases: ['_intf_dhcp-relay-service']
67 type: str
68 description: Intf dhcp relay service.
69 choices: ['disable', 'enable']
70 _intf_dhcp_relay_type:
71 aliases: ['_intf_dhcp-relay-type']
72 type: str
73 description: Intf dhcp relay type.
74 choices: ['regular', 'ipsec']
75 _intf_dhcp6_relay_ip:
76 aliases: ['_intf_dhcp6-relay-ip']
77 type: str
78 description: Intf dhcp6 relay ip.
79 _intf_dhcp6_relay_service:
80 aliases: ['_intf_dhcp6-relay-service']
81 type: str
82 description: Intf dhcp6 relay service.
83 choices: ['disable', 'enable']
84 _intf_dhcp6_relay_type:
85 aliases: ['_intf_dhcp6-relay-type']
86 type: str
87 description: Intf dhcp6 relay type.
88 choices: ['regular']
89 _intf_ip:
90 type: str
91 description: Intf ip.
92 _intf_ip6_address:
93 aliases: ['_intf_ip6-address']
94 type: str
95 description: Intf ip6 address.
96 _intf_ip6_allowaccess:
97 aliases: ['_intf_ip6-allowaccess']
98 type: list
99 elements: str
100 description: Intf ip6 allowaccess.
101 choices: ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'any', 'fgfm', 'capwap']
102 _intf_listen_forticlient_connection:
103 aliases: ['_intf_listen-forticlient-connection']
104 type: str
105 description: Intf listen forticlient connection.
106 choices: ['disable', 'enable']
107 _scope:
108 type: list
109 elements: dict
110 description: Scope.
111 suboptions:
112 name:
113 type: str
114 description: Name.
115 vdom:
116 type: str
117 description: Vdom.
118 acct_interim_interval:
119 aliases: ['acct-interim-interval']
120 type: int
121 description: Acct interim interval.
122 address_group:
123 aliases: ['address-group']
124 type: str
125 description: Address group.
126 alias:
127 type: str
128 description: Alias.
129 atf_weight:
130 aliases: ['atf-weight']
131 type: int
132 description: Atf weight.
133 auth:
134 type: str
135 description: Auth.
136 choices: ['PSK', 'psk', 'RADIUS', 'radius', 'usergroup']
137 broadcast_ssid:
138 aliases: ['broadcast-ssid']
139 type: str
140 description: Broadcast ssid.
141 choices: ['disable', 'enable']
142 broadcast_suppression:
143 aliases: ['broadcast-suppression']
144 type: list
145 elements: str
146 description: Broadcast suppression.
147 choices: ['dhcp', 'arp', 'dhcp2', 'arp2', 'netbios-ns', 'netbios-ds', 'arp3',
148 'dhcp-up', 'dhcp-down', 'arp-known', 'arp-unknown', 'arp-reply', 'ipv6',
149 'dhcp-starvation', 'arp-poison', 'all-other-mc', 'all-other-bc',
150 'arp-proxy', 'dhcp-ucast']
151 captive_portal_ac_name:
152 aliases: ['captive-portal-ac-name']
153 type: str
154 description: Captive portal ac name.
155 captive_portal_macauth_radius_secret:
156 aliases: ['captive-portal-macauth-radius-secret']
157 type: raw
158 description: (list) Captive portal macauth radius secret.
159 captive_portal_macauth_radius_server:
160 aliases: ['captive-portal-macauth-radius-server']
161 type: str
162 description: Captive portal macauth radius server.
163 captive_portal_radius_secret:
164 aliases: ['captive-portal-radius-secret']
165 type: raw
166 description: (list) Captive portal radius secret.
167 captive_portal_radius_server:
168 aliases: ['captive-portal-radius-server']
169 type: str
170 description: Captive portal radius server.
171 captive_portal_session_timeout_interval:
172 aliases: ['captive-portal-session-timeout-interval']
173 type: int
174 description: Captive portal session timeout interval.
175 client_count:
176 aliases: ['client-count']
177 type: int
178 description: Client count.
179 dhcp_lease_time:
180 aliases: ['dhcp-lease-time']
181 type: int
182 description: Dhcp lease time.
183 dhcp_option82_circuit_id_insertion:
184 aliases: ['dhcp-option82-circuit-id-insertion']
185 type: str
186 description: Dhcp option82 circuit id insertion.
187 choices: ['disable', 'style-1', 'style-2', 'style-3']
188 dhcp_option82_insertion:
189 aliases: ['dhcp-option82-insertion']
190 type: str
191 description: Dhcp option82 insertion.
192 choices: ['disable', 'enable']
193 dhcp_option82_remote_id_insertion:
194 aliases: ['dhcp-option82-remote-id-insertion']
195 type: str
196 description: Dhcp option82 remote id insertion.
197 choices: ['disable', 'style-1']
198 dynamic_vlan:
199 aliases: ['dynamic-vlan']
200 type: str
201 description: Dynamic vlan.
202 choices: ['disable', 'enable']
203 eap_reauth:
204 aliases: ['eap-reauth']
205 type: str
206 description: Eap reauth.
207 choices: ['disable', 'enable']
208 eap_reauth_intv:
209 aliases: ['eap-reauth-intv']
210 type: int
211 description: Eap reauth intv.
212 eapol_key_retries:
213 aliases: ['eapol-key-retries']
214 type: str
215 description: Eapol key retries.
216 choices: ['disable', 'enable']
217 encrypt:
218 type: str
219 description: Encrypt.
220 choices: ['TKIP', 'AES', 'TKIP-AES']
221 external_fast_roaming:
222 aliases: ['external-fast-roaming']
223 type: str
224 description: External fast roaming.
225 choices: ['disable', 'enable']
226 external_logout:
227 aliases: ['external-logout']
228 type: str
229 description: External logout.
230 external_web:
231 aliases: ['external-web']
232 type: str
233 description: External web.
234 fast_bss_transition:
235 aliases: ['fast-bss-transition']
236 type: str
237 description: Fast bss transition.
238 choices: ['disable', 'enable']
239 fast_roaming:
240 aliases: ['fast-roaming']
241 type: str
242 description: Fast roaming.
243 choices: ['disable', 'enable']
244 ft_mobility_domain:
245 aliases: ['ft-mobility-domain']
246 type: int
247 description: Ft mobility domain.
248 ft_over_ds:
249 aliases: ['ft-over-ds']
250 type: str
251 description: Ft over ds.
252 choices: ['disable', 'enable']
253 ft_r0_key_lifetime:
254 aliases: ['ft-r0-key-lifetime']
255 type: int
256 description: Ft r0 key lifetime.
257 gtk_rekey:
258 aliases: ['gtk-rekey']
259 type: str
260 description: Gtk rekey.
261 choices: ['disable', 'enable']
262 gtk_rekey_intv:
263 aliases: ['gtk-rekey-intv']
264 type: int
265 description: Gtk rekey intv.
266 hotspot20_profile:
267 aliases: ['hotspot20-profile']
268 type: str
269 description: Hotspot20 profile.
270 intra_vap_privacy:
271 aliases: ['intra-vap-privacy']
272 type: str
273 description: Intra vap privacy.
274 choices: ['disable', 'enable']
275 ip:
276 type: str
277 description: Ip.
278 key:
279 type: raw
280 description: (list) Key.
281 keyindex:
282 type: int
283 description: Keyindex.
284 ldpc:
285 type: str
286 description: Ldpc.
287 choices: ['disable', 'tx', 'rx', 'rxtx']
288 local_authentication:
289 aliases: ['local-authentication']
290 type: str
291 description: Local authentication.
292 choices: ['disable', 'enable']
293 local_bridging:
294 aliases: ['local-bridging']
295 type: str
296 description: Local bridging.
297 choices: ['disable', 'enable']
298 local_lan:
299 aliases: ['local-lan']
300 type: str
301 description: Local lan.
302 choices: ['deny', 'allow']
303 local_standalone:
304 aliases: ['local-standalone']
305 type: str
306 description: Local standalone.
307 choices: ['disable', 'enable']
308 local_standalone_nat:
309 aliases: ['local-standalone-nat']
310 type: str
311 description: Local standalone nat.
312 choices: ['disable', 'enable']
313 local_switching:
314 aliases: ['local-switching']
315 type: str
316 description: Local switching.
317 choices: ['disable', 'enable']
318 mac_auth_bypass:
319 aliases: ['mac-auth-bypass']
320 type: str
321 description: Mac auth bypass.
322 choices: ['disable', 'enable']
323 mac_filter:
324 aliases: ['mac-filter']
325 type: str
326 description: Mac filter.
327 choices: ['disable', 'enable']
328 mac_filter_policy_other:
329 aliases: ['mac-filter-policy-other']
330 type: str
331 description: Mac filter policy other.
332 choices: ['deny', 'allow']
333 max_clients:
334 aliases: ['max-clients']
335 type: int
336 description: Max clients.
337 max_clients_ap:
338 aliases: ['max-clients-ap']
339 type: int
340 description: Max clients ap.
341 me_disable_thresh:
342 aliases: ['me-disable-thresh']
343 type: int
344 description: Me disable thresh.
345 mesh_backhaul:
346 aliases: ['mesh-backhaul']
347 type: str
348 description: Mesh backhaul.
349 choices: ['disable', 'enable']
350 mpsk:
351 type: str
352 description: Mpsk.
353 choices: ['disable', 'enable']
354 mpsk_concurrent_clients:
355 aliases: ['mpsk-concurrent-clients']
356 type: int
357 description: Mpsk concurrent clients.
358 multicast_enhance:
359 aliases: ['multicast-enhance']
360 type: str
361 description: Multicast enhance.
362 choices: ['disable', 'enable']
363 multicast_rate:
364 aliases: ['multicast-rate']
365 type: str
366 description: Multicast rate.
367 choices: ['0', '6000', '12000', '24000']
368 okc:
369 type: str
370 description: Okc.
371 choices: ['disable', 'enable']
372 owe_groups:
373 aliases: ['owe-groups']
374 type: list
375 elements: str
376 description: Owe groups.
377 choices: ['19', '20', '21']
378 owe_transition:
379 aliases: ['owe-transition']
380 type: str
381 description: Owe transition.
382 choices: ['disable', 'enable']
383 owe_transition_ssid:
384 aliases: ['owe-transition-ssid']
385 type: str
386 description: Owe transition ssid.
387 passphrase:
388 type: raw
389 description: (list) Passphrase.
390 pmf:
391 type: str
392 description: Pmf.
393 choices: ['disable', 'enable', 'optional']
394 pmf_assoc_comeback_timeout:
395 aliases: ['pmf-assoc-comeback-timeout']
396 type: int
397 description: Pmf assoc comeback timeout.
398 pmf_sa_query_retry_timeout:
399 aliases: ['pmf-sa-query-retry-timeout']
400 type: int
401 description: Pmf sa query retry timeout.
402 portal_message_override_group:
403 aliases: ['portal-message-override-group']
404 type: str
405 description: Portal message override group.
406 portal_type:
407 aliases: ['portal-type']
408 type: str
409 description: Portal type.
410 choices: ['auth', 'auth+disclaimer', 'disclaimer', 'email-collect', 'cmcc',
411 'cmcc-macauth', 'auth-mac', 'external-auth', 'external-macauth']
412 probe_resp_suppression:
413 aliases: ['probe-resp-suppression']
414 type: str
415 description: Probe resp suppression.
416 choices: ['disable', 'enable']
417 probe_resp_threshold:
418 aliases: ['probe-resp-threshold']
419 type: str
420 description: Probe resp threshold.
421 ptk_rekey:
422 aliases: ['ptk-rekey']
423 type: str
424 description: Ptk rekey.
425 choices: ['disable', 'enable']
426 ptk_rekey_intv:
427 aliases: ['ptk-rekey-intv']
428 type: int
429 description: Ptk rekey intv.
430 qos_profile:
431 aliases: ['qos-profile']
432 type: str
433 description: Qos profile.
434 quarantine:
435 type: str
436 description: Quarantine.
437 choices: ['disable', 'enable']
438 radio_2g_threshold:
439 aliases: ['radio-2g-threshold']
440 type: str
441 description: Radio 2g threshold.
442 radio_5g_threshold:
443 aliases: ['radio-5g-threshold']
444 type: str
445 description: Radio 5g threshold.
446 radio_sensitivity:
447 aliases: ['radio-sensitivity']
448 type: str
449 description: Radio sensitivity.
450 choices: ['disable', 'enable']
451 radius_mac_auth:
452 aliases: ['radius-mac-auth']
453 type: str
454 description: Radius mac auth.
455 choices: ['disable', 'enable']
456 radius_mac_auth_server:
457 aliases: ['radius-mac-auth-server']
458 type: str
459 description: Radius mac auth server.
460 radius_mac_auth_usergroups:
461 aliases: ['radius-mac-auth-usergroups']
462 type: raw
463 description: (list) Radius mac auth usergroups.
464 radius_server:
465 aliases: ['radius-server']
466 type: str
467 description: Radius server.
468 rates_11a:
469 aliases: ['rates-11a']
470 type: list
471 elements: str
472 description: Rates 11a.
473 choices: ['1', '1-basic', '2', '2-basic', '5.5', '5.5-basic', '6', '6-basic', '9',
474 '9-basic', '12', '12-basic', '18', '18-basic', '24', '24-basic', '36',
475 '36-basic', '48', '48-basic', '54', '54-basic', '11', '11-basic']
476 rates_11ac_ss12:
477 aliases: ['rates-11ac-ss12']
478 type: list
479 elements: str
480 description: Rates 11ac ss12.
481 choices: ['mcs0/1', 'mcs1/1', 'mcs2/1', 'mcs3/1', 'mcs4/1', 'mcs5/1', 'mcs6/1',
482 'mcs7/1', 'mcs8/1', 'mcs9/1', 'mcs0/2', 'mcs1/2', 'mcs2/2', 'mcs3/2',
483 'mcs4/2', 'mcs5/2', 'mcs6/2', 'mcs7/2', 'mcs8/2', 'mcs9/2', 'mcs10/1',
484 'mcs11/1', 'mcs10/2', 'mcs11/2']
485 rates_11ac_ss34:
486 aliases: ['rates-11ac-ss34']
487 type: list
488 elements: str
489 description: Rates 11ac ss34.
490 choices: ['mcs0/3', 'mcs1/3', 'mcs2/3', 'mcs3/3', 'mcs4/3', 'mcs5/3', 'mcs6/3',
491 'mcs7/3', 'mcs8/3', 'mcs9/3', 'mcs0/4', 'mcs1/4', 'mcs2/4', 'mcs3/4',
492 'mcs4/4', 'mcs5/4', 'mcs6/4', 'mcs7/4', 'mcs8/4', 'mcs9/4', 'mcs10/3',
493 'mcs11/3', 'mcs10/4', 'mcs11/4']
494 rates_11bg:
495 aliases: ['rates-11bg']
496 type: list
497 elements: str
498 description: Rates 11bg.
499 choices: ['1', '1-basic', '2', '2-basic', '5.5', '5.5-basic', '6', '6-basic', '9',
500 '9-basic', '12', '12-basic', '18', '18-basic', '24', '24-basic', '36',
501 '36-basic', '48', '48-basic', '54', '54-basic', '11', '11-basic']
502 rates_11n_ss12:
503 aliases: ['rates-11n-ss12']
504 type: list
505 elements: str
506 description: Rates 11n ss12.
507 choices: ['mcs0/1', 'mcs1/1', 'mcs2/1', 'mcs3/1', 'mcs4/1', 'mcs5/1', 'mcs6/1',
508 'mcs7/1', 'mcs8/2', 'mcs9/2', 'mcs10/2', 'mcs11/2', 'mcs12/2',
509 'mcs13/2', 'mcs14/2', 'mcs15/2']
510 rates_11n_ss34:
511 aliases: ['rates-11n-ss34']
512 type: list
513 elements: str
514 description: Rates 11n ss34.
515 choices: ['mcs16/3', 'mcs17/3', 'mcs18/3', 'mcs19/3', 'mcs20/3', 'mcs21/3',
516 'mcs22/3', 'mcs23/3', 'mcs24/4', 'mcs25/4', 'mcs26/4', 'mcs27/4',
517 'mcs28/4', 'mcs29/4', 'mcs30/4', 'mcs31/4']
518 sae_groups:
519 aliases: ['sae-groups']
520 type: list
521 elements: str
522 description: Sae groups.
523 choices: ['1', '2', '5', '14', '15', '16', '17', '18', '19', '20', '21', '27',
524 '28', '29', '30', '31']
525 sae_password:
526 aliases: ['sae-password']
527 type: raw
528 description: (list) Sae password.
529 schedule:
530 type: raw
531 description: (list or str) Schedule.
532 security:
533 type: str
534 description: Security.
535 choices: ['None', 'WEP64', 'wep64', 'WEP128', 'wep128', 'WPA_PSK', 'WPA_RADIUS',
536 'WPA', 'WPA2', 'WPA2_AUTO', 'open', 'wpa-personal', 'wpa-enterprise',
537 'captive-portal', 'wpa-only-personal', 'wpa-only-enterprise',
538 'wpa2-only-personal', 'wpa2-only-enterprise',
539 'wpa-personal+captive-portal', 'wpa-only-personal+captive-portal',
540 'wpa2-only-personal+captive-portal', 'osen', 'wpa3-enterprise', 'sae',
541 'sae-transition', 'owe', 'wpa3-sae', 'wpa3-sae-transition',
542 'wpa3-only-enterprise', 'wpa3-enterprise-transition']
543 security_exempt_list:
544 aliases: ['security-exempt-list']
545 type: str
546 description: Security exempt list.
547 security_obsolete_option:
548 aliases: ['security-obsolete-option']
549 type: str
550 description: Security obsolete option.
551 choices: ['disable', 'enable']
552 security_redirect_url:
553 aliases: ['security-redirect-url']
554 type: str
555 description: Security redirect url.
556 selected_usergroups:
557 aliases: ['selected-usergroups']
558 type: raw
559 description: (list or str) Selected usergroups.
560 split_tunneling:
561 aliases: ['split-tunneling']
562 type: str
563 description: Split tunneling.
564 choices: ['disable', 'enable']
565 ssid:
566 type: str
567 description: Ssid.
568 tkip_counter_measure:
569 aliases: ['tkip-counter-measure']
570 type: str
571 description: Tkip counter measure.
572 choices: ['disable', 'enable']
573 usergroup:
574 type: raw
575 description: (list or str) Usergroup.
576 utm_profile:
577 aliases: ['utm-profile']
578 type: str
579 description: Utm profile.
580 vdom:
581 type: raw
582 description: (list or str) Vdom.
583 vlan_auto:
584 aliases: ['vlan-auto']
585 type: str
586 description: Vlan auto.
587 choices: ['disable', 'enable']
588 vlan_pooling:
589 aliases: ['vlan-pooling']
590 type: str
591 description: Vlan pooling.
592 choices: ['wtp-group', 'round-robin', 'hash', 'disable']
593 vlanid:
594 type: int
595 description: Vlanid.
596 voice_enterprise:
597 aliases: ['voice-enterprise']
598 type: str
599 description: Voice enterprise.
600 choices: ['disable', 'enable']
601 mu_mimo:
602 aliases: ['mu-mimo']
603 type: str
604 description: Mu mimo.
605 choices: ['disable', 'enable']
606 _intf_device_access_list:
607 aliases: ['_intf_device-access-list']
608 type: str
609 description: Intf device access list.
610 external_web_format:
611 aliases: ['external-web-format']
612 type: str
613 description: External web format.
614 choices: ['auto-detect', 'no-query-string', 'partial-query-string']
615 high_efficiency:
616 aliases: ['high-efficiency']
617 type: str
618 description: High efficiency.
619 choices: ['disable', 'enable']
620 primary_wag_profile:
621 aliases: ['primary-wag-profile']
622 type: str
623 description: Primary wag profile.
624 secondary_wag_profile:
625 aliases: ['secondary-wag-profile']
626 type: str
627 description: Secondary wag profile.
628 target_wake_time:
629 aliases: ['target-wake-time']
630 type: str
631 description: Target wake time.
632 choices: ['disable', 'enable']
633 tunnel_echo_interval:
634 aliases: ['tunnel-echo-interval']
635 type: int
636 description: Tunnel echo interval.
637 tunnel_fallback_interval:
638 aliases: ['tunnel-fallback-interval']
639 type: int
640 description: Tunnel fallback interval.
641 access_control_list:
642 aliases: ['access-control-list']
643 type: str
644 description: Access control list.
645 captive_portal_auth_timeout:
646 aliases: ['captive-portal-auth-timeout']
647 type: int
648 description: Captive portal auth timeout.
649 ipv6_rules:
650 aliases: ['ipv6-rules']
651 type: list
652 elements: str
653 description: Ipv6 rules.
654 choices: ['drop-icmp6ra', 'drop-icmp6rs', 'drop-llmnr6', 'drop-icmp6mld2',
655 'drop-dhcp6s', 'drop-dhcp6c', 'ndp-proxy', 'drop-ns-dad',
656 'drop-ns-nondad']
657 sticky_client_remove:
658 aliases: ['sticky-client-remove']
659 type: str
660 description: Sticky client remove.
661 choices: ['disable', 'enable']
662 sticky_client_threshold_2g:
663 aliases: ['sticky-client-threshold-2g']
664 type: str
665 description: Sticky client threshold 2g.
666 sticky_client_threshold_5g:
667 aliases: ['sticky-client-threshold-5g']
668 type: str
669 description: Sticky client threshold 5g.
670 bss_color_partial:
671 aliases: ['bss-color-partial']
672 type: str
673 description: Bss color partial.
674 choices: ['disable', 'enable']
675 dhcp_option43_insertion:
676 aliases: ['dhcp-option43-insertion']
677 type: str
678 description: Dhcp option43 insertion.
679 choices: ['disable', 'enable']
680 mpsk_profile:
681 aliases: ['mpsk-profile']
682 type: str
683 description: Mpsk profile.
684 igmp_snooping:
685 aliases: ['igmp-snooping']
686 type: str
687 description: Enable/disable IGMP snooping.
688 choices: ['disable', 'enable']
689 port_macauth:
690 aliases: ['port-macauth']
691 type: str
692 description: Enable/disable LAN port MAC authentication
693 choices: ['disable', 'radius', 'address-group']
694 port_macauth_reauth_timeout:
695 aliases: ['port-macauth-reauth-timeout']
696 type: int
697 description: LAN port MAC authentication re-authentication timeout value
698 port_macauth_timeout:
699 aliases: ['port-macauth-timeout']
700 type: int
701 description: LAN port MAC authentication idle timeout value
702 additional_akms:
703 aliases: ['additional-akms']
704 type: list
705 elements: str
706 description: Additional AKMs.
707 choices: ['akm6', 'akm24']
708 bstm_disassociation_imminent:
709 aliases: ['bstm-disassociation-imminent']
710 type: str
711 description: Enable/disable forcing of disassociation after the BSTM request timer has been reached
712 choices: ['disable', 'enable']
713 bstm_load_balancing_disassoc_timer:
714 aliases: ['bstm-load-balancing-disassoc-timer']
715 type: int
716 description: Time interval for client to voluntarily leave AP before forcing a disassociation due to AP load-balancing
717 bstm_rssi_disassoc_timer:
718 aliases: ['bstm-rssi-disassoc-timer']
719 type: int
720 description: Time interval for client to voluntarily leave AP before forcing a disassociation due to low RSSI
721 dhcp_address_enforcement:
722 aliases: ['dhcp-address-enforcement']
723 type: str
724 description: Enable/disable DHCP address enforcement
725 choices: ['disable', 'enable']
726 gas_comeback_delay:
727 aliases: ['gas-comeback-delay']
728 type: int
729 description: GAS comeback delay
730 gas_fragmentation_limit:
731 aliases: ['gas-fragmentation-limit']
732 type: int
733 description: GAS fragmentation limit
734 mac_called_station_delimiter:
735 aliases: ['mac-called-station-delimiter']
736 type: str
737 description: MAC called station delimiter
738 choices: ['hyphen', 'single-hyphen', 'colon', 'none']
739 mac_calling_station_delimiter:
740 aliases: ['mac-calling-station-delimiter']
741 type: str
742 description: MAC calling station delimiter
743 choices: ['hyphen', 'single-hyphen', 'colon', 'none']
744 mac_case:
745 aliases: ['mac-case']
746 type: str
747 description: MAC case
748 choices: ['uppercase', 'lowercase']
749 mac_password_delimiter:
750 aliases: ['mac-password-delimiter']
751 type: str
752 description: MAC authentication password delimiter
753 choices: ['hyphen', 'single-hyphen', 'colon', 'none']
754 mac_username_delimiter:
755 aliases: ['mac-username-delimiter']
756 type: str
757 description: MAC authentication username delimiter
758 choices: ['hyphen', 'single-hyphen', 'colon', 'none']
759 mbo:
760 type: str
761 description: Enable/disable Multiband Operation
762 choices: ['disable', 'enable']
763 mbo_cell_data_conn_pref:
764 aliases: ['mbo-cell-data-conn-pref']
765 type: str
766 description: MBO cell data connection preference
767 choices: ['excluded', 'prefer-not', 'prefer-use']
768 nac:
769 type: str
770 description: Enable/disable network access control.
771 choices: ['disable', 'enable']
772 nac_profile:
773 aliases: ['nac-profile']
774 type: str
775 description: NAC profile name.
776 neighbor_report_dual_band:
777 aliases: ['neighbor-report-dual-band']
778 type: str
779 description: Enable/disable dual-band neighbor report
780 choices: ['disable', 'enable']
781 address_group_policy:
782 aliases: ['address-group-policy']
783 type: str
784 description: Configure MAC address filtering policy for MAC addresses that are in the address-group.
785 choices: ['disable', 'allow', 'deny']
786 antivirus_profile:
787 aliases: ['antivirus-profile']
788 type: str
789 description: AntiVirus profile name.
790 application_detection_engine:
791 aliases: ['application-detection-engine']
792 type: str
793 description: Enable/disable application detection engine
794 choices: ['disable', 'enable']
795 application_list:
796 aliases: ['application-list']
797 type: str
798 description: Application control list name.
799 application_report_intv:
800 aliases: ['application-report-intv']
801 type: int
802 description: Application report interval
803 auth_cert:
804 aliases: ['auth-cert']
805 type: str
806 description: HTTPS server certificate.
807 auth_portal_addr:
808 aliases: ['auth-portal-addr']
809 type: str
810 description: Address of captive portal.
811 beacon_advertising:
812 aliases: ['beacon-advertising']
813 type: list
814 elements: str
815 description: Fortinet beacon advertising IE data
816 choices: ['name', 'model', 'serial-number']
817 ips_sensor:
818 aliases: ['ips-sensor']
819 type: str
820 description: IPS sensor name.
821 l3_roaming:
822 aliases: ['l3-roaming']
823 type: str
824 description: Enable/disable layer 3 roaming
825 choices: ['disable', 'enable']
826 local_standalone_dns:
827 aliases: ['local-standalone-dns']
828 type: str
829 description: Enable/disable AP local standalone DNS.
830 choices: ['disable', 'enable']
831 local_standalone_dns_ip:
832 aliases: ['local-standalone-dns-ip']
833 type: raw
834 description: (list) IPv4 addresses for the local standalone DNS.
835 osen:
836 type: str
837 description: Enable/disable OSEN as part of key management
838 choices: ['disable', 'enable']
839 radius_mac_mpsk_auth:
840 aliases: ['radius-mac-mpsk-auth']
841 type: str
842 description: Enable/disable RADIUS-based MAC authentication of clients for MPSK authentication
843 choices: ['disable', 'enable']
844 radius_mac_mpsk_timeout:
845 aliases: ['radius-mac-mpsk-timeout']
846 type: int
847 description: RADIUS MAC MPSK cache timeout interval
848 rates_11ax_ss12:
849 aliases: ['rates-11ax-ss12']
850 type: list
851 elements: str
852 description: Allowed data rates for 802.
853 choices: ['mcs0/1', 'mcs1/1', 'mcs2/1', 'mcs3/1', 'mcs4/1', 'mcs5/1', 'mcs6/1',
854 'mcs7/1', 'mcs8/1', 'mcs9/1', 'mcs10/1', 'mcs11/1', 'mcs0/2', 'mcs1/2',
855 'mcs2/2', 'mcs3/2', 'mcs4/2', 'mcs5/2', 'mcs6/2', 'mcs7/2', 'mcs8/2',
856 'mcs9/2', 'mcs10/2', 'mcs11/2']
857 rates_11ax_ss34:
858 aliases: ['rates-11ax-ss34']
859 type: list
860 elements: str
861 description: Allowed data rates for 802.
862 choices: ['mcs0/3', 'mcs1/3', 'mcs2/3', 'mcs3/3', 'mcs4/3', 'mcs5/3', 'mcs6/3',
863 'mcs7/3', 'mcs8/3', 'mcs9/3', 'mcs10/3', 'mcs11/3', 'mcs0/4', 'mcs1/4',
864 'mcs2/4', 'mcs3/4', 'mcs4/4', 'mcs5/4', 'mcs6/4', 'mcs7/4', 'mcs8/4',
865 'mcs9/4', 'mcs10/4', 'mcs11/4']
866 scan_botnet_connections:
867 aliases: ['scan-botnet-connections']
868 type: str
869 description: Block or monitor connections to Botnet servers or disable Botnet scanning.
870 choices: ['disable', 'block', 'monitor']
871 utm_log:
872 aliases: ['utm-log']
873 type: str
874 description: Enable/disable UTM logging.
875 choices: ['disable', 'enable']
876 utm_status:
877 aliases: ['utm-status']
878 type: str
879 description: Enable to add one or more security profiles
880 choices: ['disable', 'enable']
881 webfilter_profile:
882 aliases: ['webfilter-profile']
883 type: str
884 description: WebFilter profile name.
885 sae_h2e_only:
886 aliases: ['sae-h2e-only']
887 type: str
888 description: Use hash-to-element-only mechanism for PWE derivation
889 choices: ['disable', 'enable']
890 sae_pk:
891 aliases: ['sae-pk']
892 type: str
893 description: Enable/disable WPA3 SAE-PK
894 choices: ['disable', 'enable']
895 sae_private_key:
896 aliases: ['sae-private-key']
897 type: str
898 description: Private key used for WPA3 SAE-PK authentication.
899 sticky_client_threshold_6g:
900 aliases: ['sticky-client-threshold-6g']
901 type: str
902 description: Minimum signal level/threshold in dBm required for the 6G client to be serviced by the AP
903 application_dscp_marking:
904 aliases: ['application-dscp-marking']
905 type: str
906 description: Enable/disable application attribute based DSCP marking
907 choices: ['disable', 'enable']
908 l3_roaming_mode:
909 aliases: ['l3-roaming-mode']
910 type: str
911 description: Select the way that layer 3 roaming traffic is passed
912 choices: ['direct', 'indirect']
913 rates_11ac_mcs_map:
914 aliases: ['rates-11ac-mcs-map']
915 type: str
916 description: Comma separated list of max supported VHT MCS for spatial streams 1 through 8.
917 rates_11ax_mcs_map:
918 aliases: ['rates-11ax-mcs-map']
919 type: str
920 description: Comma separated list of max supported HE MCS for spatial streams 1 through 8.
921 captive_portal_fw_accounting:
922 aliases: ['captive-portal-fw-accounting']
923 type: str
924 description: Enable/disable RADIUS accounting for captive portal firewall authentication session.
925 choices: ['disable', 'enable']
926 radius_mac_auth_block_interval:
927 aliases: ['radius-mac-auth-block-interval']
928 type: int
929 description: Dont send RADIUS MAC auth request again if the client has been rejected within specific interval
930 _is_factory_setting:
931 type: str
932 description: Is factory setting.
933 choices: ['disable', 'enable', 'ext']
934 d80211k:
935 aliases: ['80211k']
936 type: str
937 description: Enable/disable 802.
938 choices: ['disable', 'enable']
939 d80211v:
940 aliases: ['80211v']
941 type: str
942 description: Enable/disable 802.
943 choices: ['disable', 'enable']
944 roaming_acct_interim_update:
945 aliases: ['roaming-acct-interim-update']
946 type: str
947 description: Enable/disable using accounting interim update instead of accounting start/stop on roaming for WPA-Enterprise security.
948 choices: ['disable', 'enable']
949 sae_hnp_only:
950 aliases: ['sae-hnp-only']
951 type: str
952 description: Use hunting-and-pecking-only mechanism for PWE derivation
953 choices: ['disable', 'enable']
954 akm24_only:
955 aliases: ['akm24-only']
956 type: str
957 description: WPA3 SAE using group-dependent hash only
958 choices: ['disable', 'enable']
959 beacon_protection:
960 aliases: ['beacon-protection']
961 type: str
962 description: Enable/disable beacon protection support
963 choices: ['disable', 'enable']
964 captive_portal:
965 aliases: ['captive-portal']
966 type: str
967 description: Enable/disable captive portal.
968 choices: ['disable', 'enable']
969 nas_filter_rule:
970 aliases: ['nas-filter-rule']
971 type: str
972 description: Enable/disable NAS filter rule support
973 choices: ['disable', 'enable']
974 rates_11be_mcs_map:
975 aliases: ['rates-11be-mcs-map']
976 type: str
977 description: Comma separated list of max nss that supports EHT-MCS 0-9, 10-11, 12-13 for 20MHz/40MHz/80MHz bandwidth.
978 rates_11be_mcs_map_160:
979 aliases: ['rates-11be-mcs-map-160']
980 type: str
981 description: Comma separated list of max nss that supports EHT-MCS 0-9, 10-11, 12-13 for 160MHz bandwidth.
982 rates_11be_mcs_map_320:
983 aliases: ['rates-11be-mcs-map-320']
984 type: str
985 description: Comma separated list of max nss that supports EHT-MCS 0-9, 10-11, 12-13 for 320MHz bandwidth.
986 _intf_ip_managed_by_fortiipam:
987 aliases: ['_intf_ip-managed-by-fortiipam']
988 type: str
989 description: Intf ip managed by fortiipam.
990 choices: ['disable', 'enable', 'inherit-global']
991 _intf_managed_subnetwork_size:
992 aliases: ['_intf_managed-subnetwork-size']
993 type: str
994 description: Intf managed subnetwork size.
995 choices: ['32', '64', '128', '256', '512', '1024', '2048', '4096', '8192',
996 '16384', '32768', '65536']
997 domain_name_stripping:
998 aliases: ['domain-name-stripping']
999 type: str
1000 description: Enable/disable stripping domain name from identity
1001 choices: ['disable', 'enable']
1002 local_lan_partition:
1003 aliases: ['local-lan-partition']
1004 type: str
1005 description: Enable/disable segregating client traffic to local LAN side
1006 choices: ['disable', 'enable']
1007 _intf_role:
1008 type: str
1009 description: Intf role.
1010 choices: ['lan', 'wan', 'dmz', 'undefined']
1011 called_station_id_type:
1012 aliases: ['called-station-id-type']
1013 type: str
1014 description: The format type of RADIUS attribute Called-Station-Id
1015 choices: ['mac', 'ip', 'apname']
1016 external_pre_auth:
1017 aliases: ['external-pre-auth']
1018 type: str
1019 description: Enable/disable pre-authentication with external APs not managed by the FortiGate
1020 choices: ['disable', 'enable']
1021 pre_auth:
1022 aliases: ['pre-auth']
1023 type: str
1024 description: Enable/disable pre-authentication, where supported by clients
1025 choices: ['disable', 'enable']
1026 _intf_ip6_send_adv:
1027 aliases: ['_intf_ip6-send-adv']
1028 type: str
1029 description: Intf ip6 send adv.
1030 choices: ['disable', 'enable']
1031 ip6_prefix_list:
1032 aliases: ['ip6-prefix-list']
1033 type: list
1034 elements: dict
1035 description: Ip6 prefix list.
1036 suboptions:
1037 autonomous_flag:
1038 aliases: ['autonomous-flag']
1039 type: str
1040 description: Autonomous flag.
1041 choices: ['disable', 'enable']
1042 dnssl:
1043 type: raw
1044 description: (list) Dnssl.
1045 onlink_flag:
1046 aliases: ['onlink-flag']
1047 type: str
1048 description: Onlink flag.
1049 choices: ['disable', 'enable']
1050 preferred_life_time:
1051 aliases: ['preferred-life-time']
1052 type: int
1053 description: Preferred life time.
1054 prefix:
1055 type: str
1056 description: Prefix.
1057 rdnss:
1058 type: raw
1059 description: (list) Rdnss.
1060 valid_life_time:
1061 aliases: ['valid-life-time']
1062 type: int
1063 description: Valid life time.
1064 _intf_vrf:
1065 type: int
1066 description: Intf vrf.
1067 captive_network_assistant_bypass:
1068 aliases: ['captive-network-assistant-bypass']
1069 type: str
1070 description: Enable/disable Captive Network Assistant bypass.
1071 choices: ['disable', 'enable']
1072 mlo:
1073 type: str
1074 description: Enable/disable WiFi7 Multi-Link-Operation
1075 choices: ['disable', 'enable']
1076 '''
1077
1078 EXAMPLES = '''
1079 - name: Example playbook (generated based on argument schema)
1080 hosts: fortimanagers
1081 connection: httpapi
1082 gather_facts: false
1083 tasks:
1084 - name: Configure Virtual Access Points
1085 fortinet.fortimanager.fmgr_vap_dynamicmapping:
1086 # workspace_locking_adom: <global or your adom name>
1087 adom: <your own value>
1088 vap: <your own value>
1089 state: present # <value in [present, absent]>
1090 vap_dynamicmapping:
1091 _scope: # Required variable, list of device
1092 - name: <string>
1093 vdom: <string>
1094 # _centmgmt: <value in [disable, enable]>
1095 # _dhcp_svr_id: <string>
1096 # _intf_allowaccess: ["https", "ping", "ssh", "snmp", "http", "telnet", "fgfm",
1097 # "auto-ipsec", "radius-acct", "probe-response", "capwap", "dnp",
1098 # "ftm", "fabric", "speed-test"]
1099 # _intf_device_identification: <value in [disable, enable]>
1100 # _intf_device_netscan: <value in [disable, enable]>
1101 # _intf_dhcp_relay_ip: <list or string>
1102 # _intf_dhcp_relay_service: <value in [disable, enable]>
1103 # _intf_dhcp_relay_type: <value in [regular, ipsec]>
1104 # _intf_dhcp6_relay_ip: <string>
1105 # _intf_dhcp6_relay_service: <value in [disable, enable]>
1106 # _intf_dhcp6_relay_type: <value in [regular]>
1107 # _intf_ip: <string>
1108 # _intf_ip6_address: <string>
1109 # _intf_ip6_allowaccess: ["https", "ping", "ssh", "snmp", "http", "telnet", "any",
1110 # "fgfm", "capwap"]
1111 # _intf_listen_forticlient_connection: <value in [disable, enable]>
1112 # acct_interim_interval: <integer>
1113 # address_group: <string>
1114 # alias: <string>
1115 # atf_weight: <integer>
1116 # auth: <value in [PSK, psk, RADIUS, ...]>
1117 # broadcast_ssid: <value in [disable, enable]>
1118 # broadcast_suppression: ["dhcp", "arp", "dhcp2", "arp2", "netbios-ns", "netbios-ds",
1119 # "arp3", "dhcp-up", "dhcp-down", "arp-known", "arp-unknown",
1120 # "arp-reply", "ipv6", "dhcp-starvation", "arp-poison",
1121 # "all-other-mc", "all-other-bc", "arp-proxy", "dhcp-ucast"]
1122 # captive_portal_ac_name: <string>
1123 # captive_portal_macauth_radius_secret: <list or string>
1124 # captive_portal_macauth_radius_server: <string>
1125 # captive_portal_radius_secret: <list or string>
1126 # captive_portal_radius_server: <string>
1127 # captive_portal_session_timeout_interval: <integer>
1128 # client_count: <integer>
1129 # dhcp_lease_time: <integer>
1130 # dhcp_option82_circuit_id_insertion: <value in [disable, style-1, style-2, ...]>
1131 # dhcp_option82_insertion: <value in [disable, enable]>
1132 # dhcp_option82_remote_id_insertion: <value in [disable, style-1]>
1133 # dynamic_vlan: <value in [disable, enable]>
1134 # eap_reauth: <value in [disable, enable]>
1135 # eap_reauth_intv: <integer>
1136 # eapol_key_retries: <value in [disable, enable]>
1137 # encrypt: <value in [TKIP, AES, TKIP-AES]>
1138 # external_fast_roaming: <value in [disable, enable]>
1139 # external_logout: <string>
1140 # external_web: <string>
1141 # fast_bss_transition: <value in [disable, enable]>
1142 # fast_roaming: <value in [disable, enable]>
1143 # ft_mobility_domain: <integer>
1144 # ft_over_ds: <value in [disable, enable]>
1145 # ft_r0_key_lifetime: <integer>
1146 # gtk_rekey: <value in [disable, enable]>
1147 # gtk_rekey_intv: <integer>
1148 # hotspot20_profile: <string>
1149 # intra_vap_privacy: <value in [disable, enable]>
1150 # ip: <string>
1151 # key: <list or string>
1152 # keyindex: <integer>
1153 # ldpc: <value in [disable, tx, rx, ...]>
1154 # local_authentication: <value in [disable, enable]>
1155 # local_bridging: <value in [disable, enable]>
1156 # local_lan: <value in [deny, allow]>
1157 # local_standalone: <value in [disable, enable]>
1158 # local_standalone_nat: <value in [disable, enable]>
1159 # local_switching: <value in [disable, enable]>
1160 # mac_auth_bypass: <value in [disable, enable]>
1161 # mac_filter: <value in [disable, enable]>
1162 # mac_filter_policy_other: <value in [deny, allow]>
1163 # max_clients: <integer>
1164 # max_clients_ap: <integer>
1165 # me_disable_thresh: <integer>
1166 # mesh_backhaul: <value in [disable, enable]>
1167 # mpsk: <value in [disable, enable]>
1168 # mpsk_concurrent_clients: <integer>
1169 # multicast_enhance: <value in [disable, enable]>
1170 # multicast_rate: <value in [0, 6000, 12000, ...]>
1171 # okc: <value in [disable, enable]>
1172 # owe_groups: ["19", "20", "21"]
1173 # owe_transition: <value in [disable, enable]>
1174 # owe_transition_ssid: <string>
1175 # passphrase: <list or string>
1176 # pmf: <value in [disable, enable, optional]>
1177 # pmf_assoc_comeback_timeout: <integer>
1178 # pmf_sa_query_retry_timeout: <integer>
1179 # portal_message_override_group: <string>
1180 # portal_type: <value in [auth, auth+disclaimer, disclaimer, ...]>
1181 # probe_resp_suppression: <value in [disable, enable]>
1182 # probe_resp_threshold: <string>
1183 # ptk_rekey: <value in [disable, enable]>
1184 # ptk_rekey_intv: <integer>
1185 # qos_profile: <string>
1186 # quarantine: <value in [disable, enable]>
1187 # radio_2g_threshold: <string>
1188 # radio_5g_threshold: <string>
1189 # radio_sensitivity: <value in [disable, enable]>
1190 # radius_mac_auth: <value in [disable, enable]>
1191 # radius_mac_auth_server: <string>
1192 # radius_mac_auth_usergroups: <list or string>
1193 # radius_server: <string>
1194 # rates_11a: ["1", "1-basic", "2", "2-basic", "5.5", "5.5-basic", "6", "6-basic", "9",
1195 # "9-basic", "12", "12-basic", "18", "18-basic", "24", "24-basic", "36",
1196 # "36-basic", "48", "48-basic", "54", "54-basic", "11", "11-basic"]
1197 # rates_11ac_ss12: ["mcs0/1", "mcs1/1", "mcs2/1", "mcs3/1", "mcs4/1", "mcs5/1",
1198 # "mcs6/1", "mcs7/1", "mcs8/1", "mcs9/1", "mcs0/2", "mcs1/2",
1199 # "mcs2/2", "mcs3/2", "mcs4/2", "mcs5/2", "mcs6/2", "mcs7/2",
1200 # "mcs8/2", "mcs9/2", "mcs10/1", "mcs11/1", "mcs10/2", "mcs11/2"]
1201 # rates_11ac_ss34: ["mcs0/3", "mcs1/3", "mcs2/3", "mcs3/3", "mcs4/3", "mcs5/3",
1202 # "mcs6/3", "mcs7/3", "mcs8/3", "mcs9/3", "mcs0/4", "mcs1/4",
1203 # "mcs2/4", "mcs3/4", "mcs4/4", "mcs5/4", "mcs6/4", "mcs7/4",
1204 # "mcs8/4", "mcs9/4", "mcs10/3", "mcs11/3", "mcs10/4", "mcs11/4"]
1205 # rates_11bg: ["1", "1-basic", "2", "2-basic", "5.5", "5.5-basic", "6", "6-basic", "9",
1206 # "9-basic", "12", "12-basic", "18", "18-basic", "24", "24-basic", "36",
1207 # "36-basic", "48", "48-basic", "54", "54-basic", "11", "11-basic"]
1208 # rates_11n_ss12: ["mcs0/1", "mcs1/1", "mcs2/1", "mcs3/1", "mcs4/1", "mcs5/1", "mcs6/1",
1209 # "mcs7/1", "mcs8/2", "mcs9/2", "mcs10/2", "mcs11/2", "mcs12/2",
1210 # "mcs13/2", "mcs14/2", "mcs15/2"]
1211 # rates_11n_ss34: ["mcs16/3", "mcs17/3", "mcs18/3", "mcs19/3", "mcs20/3", "mcs21/3",
1212 # "mcs22/3", "mcs23/3", "mcs24/4", "mcs25/4", "mcs26/4", "mcs27/4",
1213 # "mcs28/4", "mcs29/4", "mcs30/4", "mcs31/4"]
1214 # sae_groups: ["1", "2", "5", "14", "15", "16", "17", "18", "19", "20", "21", "27",
1215 # "28", "29", "30", "31"]
1216 # sae_password: <list or string>
1217 # schedule: <list or string>
1218 # security: <value in [None, WEP64, wep64, ...]>
1219 # security_exempt_list: <string>
1220 # security_obsolete_option: <value in [disable, enable]>
1221 # security_redirect_url: <string>
1222 # selected_usergroups: <list or string>
1223 # split_tunneling: <value in [disable, enable]>
1224 # ssid: <string>
1225 # tkip_counter_measure: <value in [disable, enable]>
1226 # usergroup: <list or string>
1227 # utm_profile: <string>
1228 # vdom: <list or string>
1229 # vlan_auto: <value in [disable, enable]>
1230 # vlan_pooling: <value in [wtp-group, round-robin, hash, ...]>
1231 # vlanid: <integer>
1232 # voice_enterprise: <value in [disable, enable]>
1233 # mu_mimo: <value in [disable, enable]>
1234 # _intf_device_access_list: <string>
1235 # external_web_format: <value in [auto-detect, no-query-string, partial-query-string]>
1236 # high_efficiency: <value in [disable, enable]>
1237 # primary_wag_profile: <string>
1238 # secondary_wag_profile: <string>
1239 # target_wake_time: <value in [disable, enable]>
1240 # tunnel_echo_interval: <integer>
1241 # tunnel_fallback_interval: <integer>
1242 # access_control_list: <string>
1243 # captive_portal_auth_timeout: <integer>
1244 # ipv6_rules: ["drop-icmp6ra", "drop-icmp6rs", "drop-llmnr6", "drop-icmp6mld2",
1245 # "drop-dhcp6s", "drop-dhcp6c", "ndp-proxy", "drop-ns-dad",
1246 # "drop-ns-nondad"]
1247 # sticky_client_remove: <value in [disable, enable]>
1248 # sticky_client_threshold_2g: <string>
1249 # sticky_client_threshold_5g: <string>
1250 # bss_color_partial: <value in [disable, enable]>
1251 # dhcp_option43_insertion: <value in [disable, enable]>
1252 # mpsk_profile: <string>
1253 # igmp_snooping: <value in [disable, enable]>
1254 # port_macauth: <value in [disable, radius, address-group]>
1255 # port_macauth_reauth_timeout: <integer>
1256 # port_macauth_timeout: <integer>
1257 # additional_akms: ["akm6", "akm24"]
1258 # bstm_disassociation_imminent: <value in [disable, enable]>
1259 # bstm_load_balancing_disassoc_timer: <integer>
1260 # bstm_rssi_disassoc_timer: <integer>
1261 # dhcp_address_enforcement: <value in [disable, enable]>
1262 # gas_comeback_delay: <integer>
1263 # gas_fragmentation_limit: <integer>
1264 # mac_called_station_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
1265 # mac_calling_station_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
1266 # mac_case: <value in [uppercase, lowercase]>
1267 # mac_password_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
1268 # mac_username_delimiter: <value in [hyphen, single-hyphen, colon, ...]>
1269 # mbo: <value in [disable, enable]>
1270 # mbo_cell_data_conn_pref: <value in [excluded, prefer-not, prefer-use]>
1271 # nac: <value in [disable, enable]>
1272 # nac_profile: <string>
1273 # neighbor_report_dual_band: <value in [disable, enable]>
1274 # address_group_policy: <value in [disable, allow, deny]>
1275 # antivirus_profile: <string>
1276 # application_detection_engine: <value in [disable, enable]>
1277 # application_list: <string>
1278 # application_report_intv: <integer>
1279 # auth_cert: <string>
1280 # auth_portal_addr: <string>
1281 # beacon_advertising: ["name", "model", "serial-number"]
1282 # ips_sensor: <string>
1283 # l3_roaming: <value in [disable, enable]>
1284 # local_standalone_dns: <value in [disable, enable]>
1285 # local_standalone_dns_ip: <list or string>
1286 # osen: <value in [disable, enable]>
1287 # radius_mac_mpsk_auth: <value in [disable, enable]>
1288 # radius_mac_mpsk_timeout: <integer>
1289 # rates_11ax_ss12: ["mcs0/1", "mcs1/1", "mcs2/1", "mcs3/1", "mcs4/1", "mcs5/1",
1290 # "mcs6/1", "mcs7/1", "mcs8/1", "mcs9/1", "mcs10/1", "mcs11/1",
1291 # "mcs0/2", "mcs1/2", "mcs2/2", "mcs3/2", "mcs4/2", "mcs5/2",
1292 # "mcs6/2", "mcs7/2", "mcs8/2", "mcs9/2", "mcs10/2", "mcs11/2"]
1293 # rates_11ax_ss34: ["mcs0/3", "mcs1/3", "mcs2/3", "mcs3/3", "mcs4/3", "mcs5/3",
1294 # "mcs6/3", "mcs7/3", "mcs8/3", "mcs9/3", "mcs10/3", "mcs11/3",
1295 # "mcs0/4", "mcs1/4", "mcs2/4", "mcs3/4", "mcs4/4", "mcs5/4",
1296 # "mcs6/4", "mcs7/4", "mcs8/4", "mcs9/4", "mcs10/4", "mcs11/4"]
1297 # scan_botnet_connections: <value in [disable, block, monitor]>
1298 # utm_log: <value in [disable, enable]>
1299 # utm_status: <value in [disable, enable]>
1300 # webfilter_profile: <string>
1301 # sae_h2e_only: <value in [disable, enable]>
1302 # sae_pk: <value in [disable, enable]>
1303 # sae_private_key: <string>
1304 # sticky_client_threshold_6g: <string>
1305 # application_dscp_marking: <value in [disable, enable]>
1306 # l3_roaming_mode: <value in [direct, indirect]>
1307 # rates_11ac_mcs_map: <string>
1308 # rates_11ax_mcs_map: <string>
1309 # captive_portal_fw_accounting: <value in [disable, enable]>
1310 # radius_mac_auth_block_interval: <integer>
1311 # _is_factory_setting: <value in [disable, enable, ext]>
1312 # d80211k: <value in [disable, enable]>
1313 # d80211v: <value in [disable, enable]>
1314 # roaming_acct_interim_update: <value in [disable, enable]>
1315 # sae_hnp_only: <value in [disable, enable]>
1316 # akm24_only: <value in [disable, enable]>
1317 # beacon_protection: <value in [disable, enable]>
1318 # captive_portal: <value in [disable, enable]>
1319 # nas_filter_rule: <value in [disable, enable]>
1320 # rates_11be_mcs_map: <string>
1321 # rates_11be_mcs_map_160: <string>
1322 # rates_11be_mcs_map_320: <string>
1323 # _intf_ip_managed_by_fortiipam: <value in [disable, enable, inherit-global]>
1324 # _intf_managed_subnetwork_size: <value in [32, 64, 128, ...]>
1325 # domain_name_stripping: <value in [disable, enable]>
1326 # local_lan_partition: <value in [disable, enable]>
1327 # _intf_role: <value in [lan, wan, dmz, ...]>
1328 # called_station_id_type: <value in [mac, ip, apname]>
1329 # external_pre_auth: <value in [disable, enable]>
1330 # pre_auth: <value in [disable, enable]>
1331 # _intf_ip6_send_adv: <value in [disable, enable]>
1332 # ip6_prefix_list:
1333 # - autonomous_flag: <value in [disable, enable]>
1334 # dnssl: <list or string>
1335 # onlink_flag: <value in [disable, enable]>
1336 # preferred_life_time: <integer>
1337 # prefix: <string>
1338 # rdnss: <list or string>
1339 # valid_life_time: <integer>
1340 # _intf_vrf: <integer>
1341 # captive_network_assistant_bypass: <value in [disable, enable]>
1342 # mlo: <value in [disable, enable]>
1343 '''
1344
1345 RETURN = '''
1346 meta:
1347 description: The result of the request.
1348 type: dict
1349 returned: always
1350 contains:
1351 request_url:
1352 description: The full url requested.
1353 returned: always
1354 type: str
1355 sample: /sys/login/user
1356 response_code:
1357 description: The status of api request.
1358 returned: always
1359 type: int
1360 sample: 0
1361 response_data:
1362 description: The api response.
1363 type: list
1364 returned: always
1365 response_message:
1366 description: The descriptive message of the api response.
1367 type: str
1368 returned: always
1369 sample: OK.
1370 system_information:
1371 description: The information of the target system.
1372 type: dict
1373 returned: always
1374 rc:
1375 description: The status the request.
1376 type: int
1377 returned: always
1378 sample: 0
1379 version_check_warning:
1380 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
1381 type: list
1382 returned: complex
1383 '''
1384 from ansible.module_utils.basic import AnsibleModule
1385 from ansible.module_utils.connection import Connection
1386 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
1387 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
1388
1389
1390 def main():
1391 urls_list = [
1392 '/pm/config/adom/{adom}/obj/wireless-controller/vap/{vap}/dynamic_mapping',
1393 '/pm/config/global/obj/wireless-controller/vap/{vap}/dynamic_mapping'
1394 ]
1395 module_arg_spec = {
1396 'adom': {'required': True, 'type': 'str'},
1397 'vap': {'required': True, 'type': 'str'},
1398 'revision_note': {'type': 'str'},
1399 'vap_dynamicmapping': {
1400 'type': 'dict', 'v_range': [['6.0.0', '']],
1401 'options': {
1402 '_centmgmt': {'choices': ['disable', 'enable'], 'type': 'str'},
1403 '_dhcp_svr_id': {'type': 'str'},
1404 '_intf_allowaccess': {
1405 'type': 'list',
1406 'choices': [
1407 'https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'fgfm', 'auto-ipsec', 'radius-acct', 'probe-response', 'capwap', 'dnp', 'ftm',
1408 'fabric', 'speed-test'
1409 ],
1410 'elements': 'str'
1411 },
1412 '_intf_device-identification': {'choices': ['disable', 'enable'], 'type': 'str'},
1413 '_intf_device-netscan': {'choices': ['disable', 'enable'], 'type': 'str'},
1414 '_intf_dhcp-relay-ip': {'type': 'raw'},
1415 '_intf_dhcp-relay-service': {'choices': ['disable', 'enable'], 'type': 'str'},
1416 '_intf_dhcp-relay-type': {'choices': ['regular', 'ipsec'], 'type': 'str'},
1417 '_intf_dhcp6-relay-ip': {'type': 'str'},
1418 '_intf_dhcp6-relay-service': {'choices': ['disable', 'enable'], 'type': 'str'},
1419 '_intf_dhcp6-relay-type': {'choices': ['regular'], 'type': 'str'},
1420 '_intf_ip': {'type': 'str'},
1421 '_intf_ip6-address': {'type': 'str'},
1422 '_intf_ip6-allowaccess': {
1423 'type': 'list',
1424 'choices': ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'any', 'fgfm', 'capwap'],
1425 'elements': 'str'
1426 },
1427 '_intf_listen-forticlient-connection': {'choices': ['disable', 'enable'], 'type': 'str'},
1428 '_scope': {'type': 'list', 'options': {'name': {'type': 'str'}, 'vdom': {'type': 'str'}}, 'elements': 'dict'},
1429 'acct-interim-interval': {'type': 'int'},
1430 'address-group': {'type': 'str'},
1431 'alias': {'type': 'str'},
1432 'atf-weight': {'type': 'int'},
1433 'auth': {'choices': ['PSK', 'psk', 'RADIUS', 'radius', 'usergroup'], 'type': 'str'},
1434 'broadcast-ssid': {'choices': ['disable', 'enable'], 'type': 'str'},
1435 'broadcast-suppression': {
1436 'type': 'list',
1437 'choices': [
1438 'dhcp', 'arp', 'dhcp2', 'arp2', 'netbios-ns', 'netbios-ds', 'arp3', 'dhcp-up', 'dhcp-down', 'arp-known', 'arp-unknown',
1439 'arp-reply', 'ipv6', 'dhcp-starvation', 'arp-poison', 'all-other-mc', 'all-other-bc', 'arp-proxy', 'dhcp-ucast'
1440 ],
1441 'elements': 'str'
1442 },
1443 'captive-portal-ac-name': {'type': 'str'},
1444 'captive-portal-macauth-radius-secret': {'no_log': True, 'type': 'raw'},
1445 'captive-portal-macauth-radius-server': {'type': 'str'},
1446 'captive-portal-radius-secret': {'no_log': True, 'type': 'raw'},
1447 'captive-portal-radius-server': {'type': 'str'},
1448 'captive-portal-session-timeout-interval': {'type': 'int'},
1449 'client-count': {'type': 'int'},
1450 'dhcp-lease-time': {'type': 'int'},
1451 'dhcp-option82-circuit-id-insertion': {'choices': ['disable', 'style-1', 'style-2', 'style-3'], 'type': 'str'},
1452 'dhcp-option82-insertion': {'choices': ['disable', 'enable'], 'type': 'str'},
1453 'dhcp-option82-remote-id-insertion': {'choices': ['disable', 'style-1'], 'type': 'str'},
1454 'dynamic-vlan': {'choices': ['disable', 'enable'], 'type': 'str'},
1455 'eap-reauth': {'choices': ['disable', 'enable'], 'type': 'str'},
1456 'eap-reauth-intv': {'type': 'int'},
1457 'eapol-key-retries': {'choices': ['disable', 'enable'], 'type': 'str'},
1458 'encrypt': {'choices': ['TKIP', 'AES', 'TKIP-AES'], 'type': 'str'},
1459 'external-fast-roaming': {'choices': ['disable', 'enable'], 'type': 'str'},
1460 'external-logout': {'type': 'str'},
1461 'external-web': {'type': 'str'},
1462 'fast-bss-transition': {'choices': ['disable', 'enable'], 'type': 'str'},
1463 'fast-roaming': {'choices': ['disable', 'enable'], 'type': 'str'},
1464 'ft-mobility-domain': {'type': 'int'},
1465 'ft-over-ds': {'choices': ['disable', 'enable'], 'type': 'str'},
1466 'ft-r0-key-lifetime': {'no_log': True, 'type': 'int'},
1467 'gtk-rekey': {'choices': ['disable', 'enable'], 'type': 'str'},
1468 'gtk-rekey-intv': {'no_log': True, 'type': 'int'},
1469 'hotspot20-profile': {'type': 'str'},
1470 'intra-vap-privacy': {'choices': ['disable', 'enable'], 'type': 'str'},
1471 'ip': {'type': 'str'},
1472 'key': {'no_log': True, 'type': 'raw'},
1473 'keyindex': {'no_log': True, 'type': 'int'},
1474 'ldpc': {'choices': ['disable', 'tx', 'rx', 'rxtx'], 'type': 'str'},
1475 'local-authentication': {'choices': ['disable', 'enable'], 'type': 'str'},
1476 'local-bridging': {'choices': ['disable', 'enable'], 'type': 'str'},
1477 'local-lan': {'choices': ['deny', 'allow'], 'type': 'str'},
1478 'local-standalone': {'choices': ['disable', 'enable'], 'type': 'str'},
1479 'local-standalone-nat': {'choices': ['disable', 'enable'], 'type': 'str'},
1480 'local-switching': {'choices': ['disable', 'enable'], 'type': 'str'},
1481 'mac-auth-bypass': {'choices': ['disable', 'enable'], 'type': 'str'},
1482 'mac-filter': {'choices': ['disable', 'enable'], 'type': 'str'},
1483 'mac-filter-policy-other': {'choices': ['deny', 'allow'], 'type': 'str'},
1484 'max-clients': {'type': 'int'},
1485 'max-clients-ap': {'type': 'int'},
1486 'me-disable-thresh': {'type': 'int'},
1487 'mesh-backhaul': {'choices': ['disable', 'enable'], 'type': 'str'},
1488 'mpsk': {'choices': ['disable', 'enable'], 'type': 'str'},
1489 'mpsk-concurrent-clients': {'type': 'int'},
1490 'multicast-enhance': {'choices': ['disable', 'enable'], 'type': 'str'},
1491 'multicast-rate': {'choices': ['0', '6000', '12000', '24000'], 'type': 'str'},
1492 'okc': {'choices': ['disable', 'enable'], 'type': 'str'},
1493 'owe-groups': {'type': 'list', 'choices': ['19', '20', '21'], 'elements': 'str'},
1494 'owe-transition': {'choices': ['disable', 'enable'], 'type': 'str'},
1495 'owe-transition-ssid': {'type': 'str'},
1496 'passphrase': {'no_log': True, 'type': 'raw'},
1497 'pmf': {'choices': ['disable', 'enable', 'optional'], 'type': 'str'},
1498 'pmf-assoc-comeback-timeout': {'type': 'int'},
1499 'pmf-sa-query-retry-timeout': {'type': 'int'},
1500 'portal-message-override-group': {'type': 'str'},
1501 'portal-type': {
1502 'choices': [
1503 'auth', 'auth+disclaimer', 'disclaimer', 'email-collect', 'cmcc', 'cmcc-macauth', 'auth-mac', 'external-auth',
1504 'external-macauth'
1505 ],
1506 'type': 'str'
1507 },
1508 'probe-resp-suppression': {'choices': ['disable', 'enable'], 'type': 'str'},
1509 'probe-resp-threshold': {'type': 'str'},
1510 'ptk-rekey': {'choices': ['disable', 'enable'], 'type': 'str'},
1511 'ptk-rekey-intv': {'no_log': True, 'type': 'int'},
1512 'qos-profile': {'type': 'str'},
1513 'quarantine': {'choices': ['disable', 'enable'], 'type': 'str'},
1514 'radio-2g-threshold': {'type': 'str'},
1515 'radio-5g-threshold': {'type': 'str'},
1516 'radio-sensitivity': {'choices': ['disable', 'enable'], 'type': 'str'},
1517 'radius-mac-auth': {'choices': ['disable', 'enable'], 'type': 'str'},
1518 'radius-mac-auth-server': {'type': 'str'},
1519 'radius-mac-auth-usergroups': {'type': 'raw'},
1520 'radius-server': {'type': 'str'},
1521 'rates-11a': {
1522 'type': 'list',
1523 'choices': [
1524 '1', '1-basic', '2', '2-basic', '5.5', '5.5-basic', '6', '6-basic', '9', '9-basic', '12', '12-basic', '18', '18-basic', '24',
1525 '24-basic', '36', '36-basic', '48', '48-basic', '54', '54-basic', '11', '11-basic'
1526 ],
1527 'elements': 'str'
1528 },
1529 'rates-11ac-ss12': {
1530 'type': 'list',
1531 'choices': [
1532 'mcs0/1', 'mcs1/1', 'mcs2/1', 'mcs3/1', 'mcs4/1', 'mcs5/1', 'mcs6/1', 'mcs7/1', 'mcs8/1', 'mcs9/1', 'mcs0/2', 'mcs1/2', 'mcs2/2',
1533 'mcs3/2', 'mcs4/2', 'mcs5/2', 'mcs6/2', 'mcs7/2', 'mcs8/2', 'mcs9/2', 'mcs10/1', 'mcs11/1', 'mcs10/2', 'mcs11/2'
1534 ],
1535 'elements': 'str'
1536 },
1537 'rates-11ac-ss34': {
1538 'type': 'list',
1539 'choices': [
1540 'mcs0/3', 'mcs1/3', 'mcs2/3', 'mcs3/3', 'mcs4/3', 'mcs5/3', 'mcs6/3', 'mcs7/3', 'mcs8/3', 'mcs9/3', 'mcs0/4', 'mcs1/4', 'mcs2/4',
1541 'mcs3/4', 'mcs4/4', 'mcs5/4', 'mcs6/4', 'mcs7/4', 'mcs8/4', 'mcs9/4', 'mcs10/3', 'mcs11/3', 'mcs10/4', 'mcs11/4'
1542 ],
1543 'elements': 'str'
1544 },
1545 'rates-11bg': {
1546 'type': 'list',
1547 'choices': [
1548 '1', '1-basic', '2', '2-basic', '5.5', '5.5-basic', '6', '6-basic', '9', '9-basic', '12', '12-basic', '18', '18-basic', '24',
1549 '24-basic', '36', '36-basic', '48', '48-basic', '54', '54-basic', '11', '11-basic'
1550 ],
1551 'elements': 'str'
1552 },
1553 'rates-11n-ss12': {
1554 'type': 'list',
1555 'choices': [
1556 'mcs0/1', 'mcs1/1', 'mcs2/1', 'mcs3/1', 'mcs4/1', 'mcs5/1', 'mcs6/1', 'mcs7/1', 'mcs8/2', 'mcs9/2', 'mcs10/2', 'mcs11/2',
1557 'mcs12/2', 'mcs13/2', 'mcs14/2', 'mcs15/2'
1558 ],
1559 'elements': 'str'
1560 },
1561 'rates-11n-ss34': {
1562 'type': 'list',
1563 'choices': [
1564 'mcs16/3', 'mcs17/3', 'mcs18/3', 'mcs19/3', 'mcs20/3', 'mcs21/3', 'mcs22/3', 'mcs23/3', 'mcs24/4', 'mcs25/4', 'mcs26/4',
1565 'mcs27/4', 'mcs28/4', 'mcs29/4', 'mcs30/4', 'mcs31/4'
1566 ],
1567 'elements': 'str'
1568 },
1569 'sae-groups': {
1570 'type': 'list',
1571 'choices': ['1', '2', '5', '14', '15', '16', '17', '18', '19', '20', '21', '27', '28', '29', '30', '31'],
1572 'elements': 'str'
1573 },
1574 'sae-password': {'no_log': True, 'type': 'raw'},
1575 'schedule': {'type': 'raw'},
1576 'security': {
1577 'choices': [
1578 'None', 'WEP64', 'wep64', 'WEP128', 'wep128', 'WPA_PSK', 'WPA_RADIUS', 'WPA', 'WPA2', 'WPA2_AUTO', 'open', 'wpa-personal',
1579 'wpa-enterprise', 'captive-portal', 'wpa-only-personal', 'wpa-only-enterprise', 'wpa2-only-personal', 'wpa2-only-enterprise',
1580 'wpa-personal+captive-portal', 'wpa-only-personal+captive-portal', 'wpa2-only-personal+captive-portal', 'osen',
1581 'wpa3-enterprise', 'sae', 'sae-transition', 'owe', 'wpa3-sae', 'wpa3-sae-transition', 'wpa3-only-enterprise',
1582 'wpa3-enterprise-transition'
1583 ],
1584 'type': 'str'
1585 },
1586 'security-exempt-list': {'type': 'str'},
1587 'security-obsolete-option': {'choices': ['disable', 'enable'], 'type': 'str'},
1588 'security-redirect-url': {'type': 'str'},
1589 'selected-usergroups': {'type': 'raw'},
1590 'split-tunneling': {'choices': ['disable', 'enable'], 'type': 'str'},
1591 'ssid': {'type': 'str'},
1592 'tkip-counter-measure': {'choices': ['disable', 'enable'], 'type': 'str'},
1593 'usergroup': {'type': 'raw'},
1594 'utm-profile': {'type': 'str'},
1595 'vdom': {'type': 'raw'},
1596 'vlan-auto': {'choices': ['disable', 'enable'], 'type': 'str'},
1597 'vlan-pooling': {'choices': ['wtp-group', 'round-robin', 'hash', 'disable'], 'type': 'str'},
1598 'vlanid': {'type': 'int'},
1599 'voice-enterprise': {'choices': ['disable', 'enable'], 'type': 'str'},
1600 'mu-mimo': {'v_range': [['6.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1601 '_intf_device-access-list': {'v_range': [['6.2.2', '']], 'type': 'str'},
1602 'external-web-format': {'v_range': [['6.2.2', '']], 'choices': ['auto-detect', 'no-query-string', 'partial-query-string'], 'type': 'str'},
1603 'high-efficiency': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1604 'primary-wag-profile': {'v_range': [['6.2.2', '']], 'type': 'str'},
1605 'secondary-wag-profile': {'v_range': [['6.2.2', '']], 'type': 'str'},
1606 'target-wake-time': {'v_range': [['6.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1607 'tunnel-echo-interval': {'v_range': [['6.2.2', '']], 'type': 'int'},
1608 'tunnel-fallback-interval': {'v_range': [['6.2.2', '']], 'type': 'int'},
1609 'access-control-list': {'v_range': [['6.4.0', '']], 'type': 'str'},
1610 'captive-portal-auth-timeout': {'v_range': [['6.4.0', '']], 'type': 'int'},
1611 'ipv6-rules': {
1612 'v_range': [['6.4.0', '']],
1613 'type': 'list',
1614 'choices': [
1615 'drop-icmp6ra', 'drop-icmp6rs', 'drop-llmnr6', 'drop-icmp6mld2', 'drop-dhcp6s', 'drop-dhcp6c', 'ndp-proxy', 'drop-ns-dad',
1616 'drop-ns-nondad'
1617 ],
1618 'elements': 'str'
1619 },
1620 'sticky-client-remove': {'v_range': [['6.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1621 'sticky-client-threshold-2g': {'v_range': [['6.4.0', '']], 'type': 'str'},
1622 'sticky-client-threshold-5g': {'v_range': [['6.4.0', '']], 'type': 'str'},
1623 'bss-color-partial': {'v_range': [['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1624 'dhcp-option43-insertion': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1625 'mpsk-profile': {'v_range': [['6.4.2', '']], 'type': 'str'},
1626 'igmp-snooping': {'v_range': [['6.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1627 'port-macauth': {'v_range': [['6.2.8', '6.2.13'], ['6.4.3', '']], 'choices': ['disable', 'radius', 'address-group'], 'type': 'str'},
1628 'port-macauth-reauth-timeout': {'v_range': [['6.2.8', '6.2.13'], ['6.4.3', '']], 'type': 'int'},
1629 'port-macauth-timeout': {'v_range': [['6.2.8', '6.2.13'], ['6.4.3', '']], 'type': 'int'},
1630 'additional-akms': {'v_range': [['7.0.0', '']], 'type': 'list', 'choices': ['akm6', 'akm24'], 'elements': 'str'},
1631 'bstm-disassociation-imminent': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1632 'bstm-load-balancing-disassoc-timer': {'v_range': [['7.0.0', '']], 'type': 'int'},
1633 'bstm-rssi-disassoc-timer': {'v_range': [['7.0.0', '']], 'type': 'int'},
1634 'dhcp-address-enforcement': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1635 'gas-comeback-delay': {'v_range': [['7.0.0', '']], 'type': 'int'},
1636 'gas-fragmentation-limit': {'v_range': [['7.0.0', '']], 'type': 'int'},
1637 'mac-called-station-delimiter': {'v_range': [['7.0.0', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'},
1638 'mac-calling-station-delimiter': {'v_range': [['7.0.0', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'},
1639 'mac-case': {'v_range': [['7.0.0', '']], 'choices': ['uppercase', 'lowercase'], 'type': 'str'},
1640 'mac-password-delimiter': {'v_range': [['7.0.0', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'},
1641 'mac-username-delimiter': {'v_range': [['7.0.0', '']], 'choices': ['hyphen', 'single-hyphen', 'colon', 'none'], 'type': 'str'},
1642 'mbo': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1643 'mbo-cell-data-conn-pref': {'v_range': [['7.0.0', '']], 'choices': ['excluded', 'prefer-not', 'prefer-use'], 'type': 'str'},
1644 'nac': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1645 'nac-profile': {'v_range': [['7.0.0', '']], 'type': 'str'},
1646 'neighbor-report-dual-band': {'v_range': [['7.0.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1647 'address-group-policy': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'allow', 'deny'], 'type': 'str'},
1648 'antivirus-profile': {'v_range': [['7.0.1', '']], 'type': 'str'},
1649 'application-detection-engine': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1650 'application-list': {'v_range': [['7.0.1', '']], 'type': 'str'},
1651 'application-report-intv': {'v_range': [['7.2.0', '']], 'type': 'int'},
1652 'auth-cert': {'v_range': [['7.0.3', '']], 'type': 'str'},
1653 'auth-portal-addr': {'v_range': [['7.0.3', '']], 'type': 'str'},
1654 'beacon-advertising': {'v_range': [['7.0.2', '']], 'type': 'list', 'choices': ['name', 'model', 'serial-number'], 'elements': 'str'},
1655 'ips-sensor': {'v_range': [['7.0.1', '']], 'type': 'str'},
1656 'l3-roaming': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1657 'local-standalone-dns': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1658 'local-standalone-dns-ip': {'v_range': [['7.0.1', '']], 'type': 'raw'},
1659 'osen': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1660 'radius-mac-mpsk-auth': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1661 'radius-mac-mpsk-timeout': {'v_range': [['7.0.2', '']], 'type': 'int'},
1662 'rates-11ax-ss12': {
1663 'v_range': [['7.0.2', '']],
1664 'type': 'list',
1665 'choices': [
1666 'mcs0/1', 'mcs1/1', 'mcs2/1', 'mcs3/1', 'mcs4/1', 'mcs5/1', 'mcs6/1', 'mcs7/1', 'mcs8/1', 'mcs9/1', 'mcs10/1', 'mcs11/1',
1667 'mcs0/2', 'mcs1/2', 'mcs2/2', 'mcs3/2', 'mcs4/2', 'mcs5/2', 'mcs6/2', 'mcs7/2', 'mcs8/2', 'mcs9/2', 'mcs10/2', 'mcs11/2'
1668 ],
1669 'elements': 'str'
1670 },
1671 'rates-11ax-ss34': {
1672 'v_range': [['7.0.2', '']],
1673 'type': 'list',
1674 'choices': [
1675 'mcs0/3', 'mcs1/3', 'mcs2/3', 'mcs3/3', 'mcs4/3', 'mcs5/3', 'mcs6/3', 'mcs7/3', 'mcs8/3', 'mcs9/3', 'mcs10/3', 'mcs11/3',
1676 'mcs0/4', 'mcs1/4', 'mcs2/4', 'mcs3/4', 'mcs4/4', 'mcs5/4', 'mcs6/4', 'mcs7/4', 'mcs8/4', 'mcs9/4', 'mcs10/4', 'mcs11/4'
1677 ],
1678 'elements': 'str'
1679 },
1680 'scan-botnet-connections': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'block', 'monitor'], 'type': 'str'},
1681 'utm-log': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1682 'utm-status': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1683 'webfilter-profile': {'v_range': [['7.0.1', '']], 'type': 'str'},
1684 'sae-h2e-only': {'v_range': [['7.0.5', '7.0.16'], ['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1685 'sae-pk': {'v_range': [['7.0.5', '7.0.16'], ['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1686 'sae-private-key': {'v_range': [['7.0.5', '7.0.16'], ['7.2.1', '']], 'no_log': True, 'type': 'str'},
1687 'sticky-client-threshold-6g': {'v_range': [['7.0.5', '7.0.16'], ['7.2.1', '']], 'type': 'str'},
1688 'application-dscp-marking': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1689 'l3-roaming-mode': {'v_range': [['7.2.1', '']], 'choices': ['direct', 'indirect'], 'type': 'str'},
1690 'rates-11ac-mcs-map': {'v_range': [['7.2.1', '']], 'type': 'str'},
1691 'rates-11ax-mcs-map': {'v_range': [['7.2.1', '']], 'type': 'str'},
1692 'captive-portal-fw-accounting': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1693 'radius-mac-auth-block-interval': {'v_range': [['7.2.2', '']], 'type': 'int'},
1694 '_is_factory_setting': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable', 'ext'], 'type': 'str'},
1695 '80211k': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1696 '80211v': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1697 'roaming-acct-interim-update': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1698 'sae-hnp-only': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1699 'akm24-only': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1700 'beacon-protection': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1701 'captive-portal': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1702 'nas-filter-rule': {'v_range': [['7.4.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1703 'rates-11be-mcs-map': {'v_range': [['7.4.3', '']], 'type': 'str'},
1704 'rates-11be-mcs-map-160': {'v_range': [['7.4.3', '']], 'type': 'str'},
1705 'rates-11be-mcs-map-320': {'v_range': [['7.4.3', '']], 'type': 'str'},
1706 '_intf_ip-managed-by-fortiipam': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable', 'inherit-global'], 'type': 'str'},
1707 '_intf_managed-subnetwork-size': {
1708 'v_range': [['7.6.0', '']],
1709 'choices': ['32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', '16384', '32768', '65536'],
1710 'type': 'str'
1711 },
1712 'domain-name-stripping': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1713 'local-lan-partition': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1714 '_intf_role': {
1715 'v_range': [['7.2.10', '7.2.12'], ['7.4.6', '7.4.10'], ['7.6.2', '']],
1716 'choices': ['lan', 'wan', 'dmz', 'undefined'],
1717 'type': 'str'
1718 },
1719 'called-station-id-type': {'v_range': [['7.6.2', '']], 'choices': ['mac', 'ip', 'apname'], 'type': 'str'},
1720 'external-pre-auth': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1721 'pre-auth': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1722 '_intf_ip6-send-adv': {
1723 'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']],
1724 'choices': ['disable', 'enable'],
1725 'type': 'str'
1726 },
1727 'ip6-prefix-list': {
1728 'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']],
1729 'type': 'list',
1730 'options': {
1731 'autonomous-flag': {
1732 'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']],
1733 'choices': ['disable', 'enable'],
1734 'type': 'str'
1735 },
1736 'dnssl': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']], 'type': 'raw'},
1737 'onlink-flag': {
1738 'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']],
1739 'choices': ['disable', 'enable'],
1740 'type': 'str'
1741 },
1742 'preferred-life-time': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']], 'type': 'int'},
1743 'prefix': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']], 'type': 'str'},
1744 'rdnss': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']], 'type': 'raw'},
1745 'valid-life-time': {'v_range': [['7.2.10', '7.2.12'], ['7.4.7', '7.4.10'], ['7.6.3', '']], 'type': 'int'}
1746 },
1747 'elements': 'dict'
1748 },
1749 '_intf_vrf': {'v_range': [['7.6.3', '']], 'type': 'int'},
1750 'captive-network-assistant-bypass': {'v_range': [['7.6.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1751 'mlo': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1752 }
1753 }
1754 }
1755
1756 module_option_spec = get_module_arg_spec('full crud')
1757 module_arg_spec.update(module_option_spec)
1758 check_galaxy_version(module_arg_spec)
1759 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'vap_dynamicmapping'),
1760 supports_check_mode=True)
1761 if not module._socket_path:
1762 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1763 connection = Connection(module._socket_path)
1764 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1765 'complex:{{module}}["_scope"][0]["name"]+"/"+{{module}}["_scope"][0]["vdom"]', 'data', module, connection)
1766 fmgr.process_crud()
1767 module.exit_json(meta=module.params)
1768
1769
1770 if __name__ == '__main__':
1771 main()