Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_fsp_vlan_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_fsp_vlan_dynamicmapping
15 short_description: Fsp vlan dynamic mapping
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 vlan:
29 description: The parameter (vlan) in requested url.
30 type: str
31 required: true
32 fsp_vlan_dynamicmapping:
33 description: The top level parameters set.
34 required: false
35 type: dict
36 suboptions:
37 _dhcp_status:
38 aliases: ['_dhcp-status']
39 type: str
40 description: Dhcp status.
41 choices: ['disable', 'enable']
42 _scope:
43 type: list
44 elements: dict
45 description: Scope.
46 suboptions:
47 name:
48 type: str
49 description: Name.
50 vdom:
51 type: str
52 description: Vdom.
53 dhcp_server:
54 aliases: ['dhcp-server']
55 type: dict
56 description: Dhcp server.
57 suboptions:
58 auto_configuration:
59 aliases: ['auto-configuration']
60 type: str
61 description: Enable/disable auto configuration.
62 choices: ['disable', 'enable']
63 auto_managed_status:
64 aliases: ['auto-managed-status']
65 type: str
66 description: Enable/disable use of this DHCP server once this interface has been assigned an IP address from FortiIPAM.
67 choices: ['disable', 'enable']
68 conflicted_ip_timeout:
69 aliases: ['conflicted-ip-timeout']
70 type: int
71 description: Time in seconds to wait after a conflicted IP address is removed from the DHCP range before it can be reused.
72 ddns_auth:
73 aliases: ['ddns-auth']
74 type: str
75 description: DDNS authentication mode.
76 choices: ['disable', 'tsig']
77 ddns_key:
78 aliases: ['ddns-key']
79 type: raw
80 description: (list or str) DDNS update key
81 ddns_keyname:
82 aliases: ['ddns-keyname']
83 type: str
84 description: DDNS update key name.
85 ddns_server_ip:
86 aliases: ['ddns-server-ip']
87 type: str
88 description: DDNS server IP.
89 ddns_ttl:
90 aliases: ['ddns-ttl']
91 type: int
92 description: TTL.
93 ddns_update:
94 aliases: ['ddns-update']
95 type: str
96 description: Enable/disable DDNS update for DHCP.
97 choices: ['disable', 'enable']
98 ddns_update_override:
99 aliases: ['ddns-update-override']
100 type: str
101 description: Enable/disable DDNS update override for DHCP.
102 choices: ['disable', 'enable']
103 ddns_zone:
104 aliases: ['ddns-zone']
105 type: str
106 description: Zone of your domain name
107 default_gateway:
108 aliases: ['default-gateway']
109 type: str
110 description: Default gateway IP address assigned by the DHCP server.
111 dhcp_settings_from_fortiipam:
112 aliases: ['dhcp-settings-from-fortiipam']
113 type: str
114 description: Enable/disable populating of DHCP server settings from FortiIPAM.
115 choices: ['disable', 'enable']
116 dns_server1:
117 aliases: ['dns-server1']
118 type: str
119 description: DNS server 1.
120 dns_server2:
121 aliases: ['dns-server2']
122 type: str
123 description: DNS server 2.
124 dns_server3:
125 aliases: ['dns-server3']
126 type: str
127 description: DNS server 3.
128 dns_server4:
129 aliases: ['dns-server4']
130 type: str
131 description: DNS server 4.
132 dns_service:
133 aliases: ['dns-service']
134 type: str
135 description: Options for assigning DNS servers to DHCP clients.
136 choices: ['default', 'specify', 'local']
137 domain:
138 type: str
139 description: Domain name suffix for the IP addresses that the DHCP server assigns to clients.
140 enable:
141 type: str
142 description: Enable.
143 choices: ['disable', 'enable']
144 exclude_range:
145 aliases: ['exclude-range']
146 type: list
147 elements: dict
148 description: Exclude range.
149 suboptions:
150 end_ip:
151 aliases: ['end-ip']
152 type: str
153 description: End of IP range.
154 id:
155 type: int
156 description: ID.
157 start_ip:
158 aliases: ['start-ip']
159 type: str
160 description: Start of IP range.
161 vci_match:
162 aliases: ['vci-match']
163 type: str
164 description: Enable/disable vendor class identifier
165 choices: ['disable', 'enable']
166 vci_string:
167 aliases: ['vci-string']
168 type: raw
169 description: (list) One or more VCI strings in quotes separated by spaces.
170 lease_time:
171 aliases: ['lease-time']
172 type: int
173 description: Lease time in seconds, 0 means default lease time.
174 uci_match:
175 aliases: ['uci-match']
176 type: str
177 description: Enable/disable user class identifier
178 choices: ['disable', 'enable']
179 uci_string:
180 aliases: ['uci-string']
181 type: raw
182 description: (list) One or more UCI strings in quotes separated by spaces.
183 filename:
184 type: str
185 description: Name of the boot file on the TFTP server.
186 forticlient_on_net_status:
187 aliases: ['forticlient-on-net-status']
188 type: str
189 description: Enable/disable FortiClient-On-Net service for this DHCP server.
190 choices: ['disable', 'enable']
191 id:
192 type: int
193 description: ID.
194 ip_mode:
195 aliases: ['ip-mode']
196 type: str
197 description: Method used to assign client IP.
198 choices: ['range', 'usrgrp']
199 ip_range:
200 aliases: ['ip-range']
201 type: list
202 elements: dict
203 description: Ip range.
204 suboptions:
205 end_ip:
206 aliases: ['end-ip']
207 type: str
208 description: End of IP range.
209 id:
210 type: int
211 description: ID.
212 start_ip:
213 aliases: ['start-ip']
214 type: str
215 description: Start of IP range.
216 vci_match:
217 aliases: ['vci-match']
218 type: str
219 description: Enable/disable vendor class identifier
220 choices: ['disable', 'enable']
221 vci_string:
222 aliases: ['vci-string']
223 type: raw
224 description: (list) One or more VCI strings in quotes separated by spaces.
225 lease_time:
226 aliases: ['lease-time']
227 type: int
228 description: Lease time in seconds, 0 means default lease time.
229 uci_match:
230 aliases: ['uci-match']
231 type: str
232 description: Enable/disable user class identifier
233 choices: ['disable', 'enable']
234 uci_string:
235 aliases: ['uci-string']
236 type: raw
237 description: (list) One or more UCI strings in quotes separated by spaces.
238 ipsec_lease_hold:
239 aliases: ['ipsec-lease-hold']
240 type: int
241 description: DHCP over IPsec leases expire this many seconds after tunnel down
242 lease_time:
243 aliases: ['lease-time']
244 type: int
245 description: Lease time in seconds, 0 means unlimited.
246 mac_acl_default_action:
247 aliases: ['mac-acl-default-action']
248 type: str
249 description: MAC access control default action
250 choices: ['assign', 'block']
251 netmask:
252 type: str
253 description: Netmask assigned by the DHCP server.
254 next_server:
255 aliases: ['next-server']
256 type: str
257 description: IP address of a server
258 ntp_server1:
259 aliases: ['ntp-server1']
260 type: str
261 description: NTP server 1.
262 ntp_server2:
263 aliases: ['ntp-server2']
264 type: str
265 description: NTP server 2.
266 ntp_server3:
267 aliases: ['ntp-server3']
268 type: str
269 description: NTP server 3.
270 ntp_service:
271 aliases: ['ntp-service']
272 type: str
273 description: Options for assigning Network Time Protocol
274 choices: ['default', 'specify', 'local']
275 option1:
276 type: raw
277 description: (list) Option1.
278 option2:
279 type: raw
280 description: (list) Option2.
281 option3:
282 type: raw
283 description: (list) Option3.
284 option4:
285 type: str
286 description: Option4.
287 option5:
288 type: str
289 description: Option5.
290 option6:
291 type: str
292 description: Option6.
293 options:
294 type: list
295 elements: dict
296 description: Options.
297 suboptions:
298 code:
299 type: int
300 description: DHCP option code.
301 id:
302 type: int
303 description: ID.
304 ip:
305 type: raw
306 description: (list) DHCP option IPs.
307 type:
308 type: str
309 description: DHCP option type.
310 choices: ['hex', 'string', 'ip', 'fqdn']
311 value:
312 type: str
313 description: DHCP option value.
314 vci_match:
315 aliases: ['vci-match']
316 type: str
317 description: Enable/disable vendor class identifier
318 choices: ['disable', 'enable']
319 vci_string:
320 aliases: ['vci-string']
321 type: raw
322 description: (list) One or more VCI strings in quotes separated by spaces.
323 uci_match:
324 aliases: ['uci-match']
325 type: str
326 description: Enable/disable user class identifier
327 choices: ['disable', 'enable']
328 uci_string:
329 aliases: ['uci-string']
330 type: raw
331 description: (list) One or more UCI strings in quotes separated by spaces.
332 reserved_address:
333 aliases: ['reserved-address']
334 type: list
335 elements: dict
336 description: Reserved address.
337 suboptions:
338 action:
339 type: str
340 description: Options for the DHCP server to configure the client with the reserved MAC address.
341 choices: ['assign', 'block', 'reserved']
342 circuit_id:
343 aliases: ['circuit-id']
344 type: str
345 description: Option 82 circuit-ID of the client that will get the reserved IP address.
346 circuit_id_type:
347 aliases: ['circuit-id-type']
348 type: str
349 description: DHCP option type.
350 choices: ['hex', 'string']
351 description:
352 type: str
353 description: Description.
354 id:
355 type: int
356 description: ID.
357 ip:
358 type: str
359 description: IP address to be reserved for the MAC address.
360 mac:
361 type: str
362 description: MAC address of the client that will get the reserved IP address.
363 remote_id:
364 aliases: ['remote-id']
365 type: str
366 description: Option 82 remote-ID of the client that will get the reserved IP address.
367 remote_id_type:
368 aliases: ['remote-id-type']
369 type: str
370 description: DHCP option type.
371 choices: ['hex', 'string']
372 type:
373 type: str
374 description: DHCP reserved-address type.
375 choices: ['mac', 'option82']
376 server_type:
377 aliases: ['server-type']
378 type: str
379 description: DHCP server can be a normal DHCP server or an IPsec DHCP server.
380 choices: ['regular', 'ipsec']
381 status:
382 type: str
383 description: Enable/disable this DHCP configuration.
384 choices: ['disable', 'enable']
385 tftp_server:
386 aliases: ['tftp-server']
387 type: raw
388 description: (list) One or more hostnames or IP addresses of the TFTP servers in quotes separated by spaces.
389 timezone:
390 type: str
391 description: Select the time zone to be assigned to DHCP clients.
392 choices: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09',
393 '10', '11', '12', '13', '14', '15', '16', '17', '18', '19',
394 '20', '21', '22', '23', '24', '25', '26', '27', '28', '29',
395 '30', '31', '32', '33', '34', '35', '36', '37', '38', '39',
396 '40', '41', '42', '43', '44', '45', '46', '47', '48', '49',
397 '50', '51', '52', '53', '54', '55', '56', '57', '58', '59',
398 '60', '61', '62', '63', '64', '65', '66', '67', '68', '69',
399 '70', '71', '72', '73', '74', '75', '76', '77', '78', '79',
400 '80', '81', '82', '83', '84', '85', '86', '87']
401 timezone_option:
402 aliases: ['timezone-option']
403 type: str
404 description: Options for the DHCP server to set the clients time zone.
405 choices: ['disable', 'default', 'specify']
406 vci_match:
407 aliases: ['vci-match']
408 type: str
409 description: Enable/disable vendor class identifier
410 choices: ['disable', 'enable']
411 vci_string:
412 aliases: ['vci-string']
413 type: raw
414 description: (list) One or more VCI strings in quotes separated by spaces.
415 wifi_ac_service:
416 aliases: ['wifi-ac-service']
417 type: str
418 description: Options for assigning WiFi Access Controllers to DHCP clients
419 choices: ['specify', 'local']
420 wifi_ac1:
421 aliases: ['wifi-ac1']
422 type: str
423 description: WiFi Access Controller 1 IP address
424 wifi_ac2:
425 aliases: ['wifi-ac2']
426 type: str
427 description: WiFi Access Controller 2 IP address
428 wifi_ac3:
429 aliases: ['wifi-ac3']
430 type: str
431 description: WiFi Access Controller 3 IP address
432 wins_server1:
433 aliases: ['wins-server1']
434 type: str
435 description: WINS server 1.
436 wins_server2:
437 aliases: ['wins-server2']
438 type: str
439 description: WINS server 2.
440 relay_agent:
441 aliases: ['relay-agent']
442 type: str
443 description: Relay agent IP.
444 shared_subnet:
445 aliases: ['shared-subnet']
446 type: str
447 description: Enable/disable shared subnet.
448 choices: ['disable', 'enable']
449 interface:
450 type: dict
451 description: Interface.
452 suboptions:
453 dhcp_relay_agent_option:
454 aliases: ['dhcp-relay-agent-option']
455 type: str
456 description: Dhcp relay agent option.
457 choices: ['disable', 'enable']
458 dhcp_relay_ip:
459 aliases: ['dhcp-relay-ip']
460 type: raw
461 description: (list) Dhcp relay ip.
462 dhcp_relay_service:
463 aliases: ['dhcp-relay-service']
464 type: str
465 description: Dhcp relay service.
466 choices: ['disable', 'enable']
467 dhcp_relay_type:
468 aliases: ['dhcp-relay-type']
469 type: str
470 description: Dhcp relay type.
471 choices: ['regular', 'ipsec']
472 ip:
473 type: str
474 description: Ip.
475 ipv6:
476 type: dict
477 description: Ipv6.
478 suboptions:
479 autoconf:
480 type: str
481 description: Enable/disable address auto config.
482 choices: ['disable', 'enable']
483 dhcp6_client_options:
484 aliases: ['dhcp6-client-options']
485 type: list
486 elements: str
487 description: Dhcp6 client options.
488 choices: ['rapid', 'iapd', 'iana', 'dns', 'dnsname']
489 dhcp6_information_request:
490 aliases: ['dhcp6-information-request']
491 type: str
492 description: Enable/disable DHCPv6 information request.
493 choices: ['disable', 'enable']
494 dhcp6_prefix_delegation:
495 aliases: ['dhcp6-prefix-delegation']
496 type: str
497 description: Enable/disable DHCPv6 prefix delegation.
498 choices: ['disable', 'enable']
499 dhcp6_prefix_hint:
500 aliases: ['dhcp6-prefix-hint']
501 type: str
502 description: DHCPv6 prefix that will be used as a hint to the upstream DHCPv6 server.
503 dhcp6_prefix_hint_plt:
504 aliases: ['dhcp6-prefix-hint-plt']
505 type: int
506 description: DHCPv6 prefix hint preferred life time
507 dhcp6_prefix_hint_vlt:
508 aliases: ['dhcp6-prefix-hint-vlt']
509 type: int
510 description: DHCPv6 prefix hint valid life time
511 dhcp6_relay_ip:
512 aliases: ['dhcp6-relay-ip']
513 type: str
514 description: DHCPv6 relay IP address.
515 dhcp6_relay_service:
516 aliases: ['dhcp6-relay-service']
517 type: str
518 description: Enable/disable DHCPv6 relay.
519 choices: ['disable', 'enable']
520 dhcp6_relay_type:
521 aliases: ['dhcp6-relay-type']
522 type: str
523 description: DHCPv6 relay type.
524 choices: ['regular']
525 icmp6_send_redirect:
526 aliases: ['icmp6-send-redirect']
527 type: str
528 description: Enable/disable sending of ICMPv6 redirects.
529 choices: ['disable', 'enable']
530 interface_identifier:
531 aliases: ['interface-identifier']
532 type: str
533 description: IPv6 interface identifier.
534 ip6_address:
535 aliases: ['ip6-address']
536 type: str
537 description: Primary IPv6 address prefix, syntax
538 ip6_allowaccess:
539 aliases: ['ip6-allowaccess']
540 type: list
541 elements: str
542 description: Allow management access to the interface.
543 choices: ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet',
544 'fgfm', 'capwap', 'fabric', 'scim', 'probe-response']
545 ip6_default_life:
546 aliases: ['ip6-default-life']
547 type: int
548 description: Default life
549 ip6_delegated_prefix_list:
550 aliases: ['ip6-delegated-prefix-list']
551 type: list
552 elements: dict
553 description: Ip6 delegated prefix list.
554 suboptions:
555 autonomous_flag:
556 aliases: ['autonomous-flag']
557 type: str
558 description: Enable/disable the autonomous flag.
559 choices: ['disable', 'enable']
560 onlink_flag:
561 aliases: ['onlink-flag']
562 type: str
563 description: Enable/disable the onlink flag.
564 choices: ['disable', 'enable']
565 prefix_id:
566 aliases: ['prefix-id']
567 type: int
568 description: Prefix ID.
569 rdnss:
570 type: raw
571 description: (list) Recursive DNS server option.
572 rdnss_service:
573 aliases: ['rdnss-service']
574 type: str
575 description: Recursive DNS service option.
576 choices: ['delegated', 'default', 'specify']
577 subnet:
578 type: str
579 description: Add subnet ID to routing prefix.
580 upstream_interface:
581 aliases: ['upstream-interface']
582 type: str
583 description: Name of the interface that provides delegated information.
584 delegated_prefix_iaid:
585 aliases: ['delegated-prefix-iaid']
586 type: int
587 description: IAID of obtained delegated-prefix from the upstream interface.
588 dnssl_service:
589 aliases: ['dnssl-service']
590 type: str
591 description: Enable/disable use of domain from delegated prefix for DNSSL.
592 choices: ['disable', 'enable']
593 ip6_dns_server_override:
594 aliases: ['ip6-dns-server-override']
595 type: str
596 description: Enable/disable using the DNS server acquired by DHCP.
597 choices: ['disable', 'enable']
598 ip6_extra_addr:
599 aliases: ['ip6-extra-addr']
600 type: list
601 elements: dict
602 description: Ip6 extra addr.
603 suboptions:
604 prefix:
605 type: str
606 description: IPv6 address prefix.
607 ip6_hop_limit:
608 aliases: ['ip6-hop-limit']
609 type: int
610 description: Hop limit
611 ip6_link_mtu:
612 aliases: ['ip6-link-mtu']
613 type: int
614 description: IPv6 link MTU.
615 ip6_manage_flag:
616 aliases: ['ip6-manage-flag']
617 type: str
618 description: Enable/disable the managed flag.
619 choices: ['disable', 'enable']
620 ip6_max_interval:
621 aliases: ['ip6-max-interval']
622 type: int
623 description: IPv6 maximum interval
624 ip6_min_interval:
625 aliases: ['ip6-min-interval']
626 type: int
627 description: IPv6 minimum interval
628 ip6_mode:
629 aliases: ['ip6-mode']
630 type: str
631 description: Addressing mode
632 choices: ['static', 'dhcp', 'pppoe', 'delegated']
633 ip6_other_flag:
634 aliases: ['ip6-other-flag']
635 type: str
636 description: Enable/disable the other IPv6 flag.
637 choices: ['disable', 'enable']
638 ip6_prefix_list:
639 aliases: ['ip6-prefix-list']
640 type: list
641 elements: dict
642 description: Ip6 prefix list.
643 suboptions:
644 autonomous_flag:
645 aliases: ['autonomous-flag']
646 type: str
647 description: Enable/disable the autonomous flag.
648 choices: ['disable', 'enable']
649 dnssl:
650 type: raw
651 description: (list) DNS search list option.
652 onlink_flag:
653 aliases: ['onlink-flag']
654 type: str
655 description: Enable/disable the onlink flag.
656 choices: ['disable', 'enable']
657 preferred_life_time:
658 aliases: ['preferred-life-time']
659 type: int
660 description: Preferred life time
661 prefix:
662 type: str
663 description: IPv6 prefix.
664 rdnss:
665 type: raw
666 description: (list) Recursive DNS server option.
667 valid_life_time:
668 aliases: ['valid-life-time']
669 type: int
670 description: Valid life time
671 ip6_reachable_time:
672 aliases: ['ip6-reachable-time']
673 type: int
674 description: IPv6 reachable time
675 ip6_retrans_time:
676 aliases: ['ip6-retrans-time']
677 type: int
678 description: IPv6 retransmit time
679 ip6_send_adv:
680 aliases: ['ip6-send-adv']
681 type: str
682 description: Enable/disable sending advertisements about the interface.
683 choices: ['disable', 'enable']
684 ip6_subnet:
685 aliases: ['ip6-subnet']
686 type: str
687 description: Subnet to routing prefix, syntax
688 ip6_upstream_interface:
689 aliases: ['ip6-upstream-interface']
690 type: str
691 description: Interface name providing delegated information.
692 nd_cert:
693 aliases: ['nd-cert']
694 type: str
695 description: Neighbor discovery certificate.
696 nd_cga_modifier:
697 aliases: ['nd-cga-modifier']
698 type: str
699 description: Neighbor discovery CGA modifier.
700 nd_mode:
701 aliases: ['nd-mode']
702 type: str
703 description: Neighbor discovery mode.
704 choices: ['basic', 'SEND-compatible']
705 nd_security_level:
706 aliases: ['nd-security-level']
707 type: int
708 description: Neighbor discovery security level
709 nd_timestamp_delta:
710 aliases: ['nd-timestamp-delta']
711 type: int
712 description: Neighbor discovery timestamp delta value
713 nd_timestamp_fuzz:
714 aliases: ['nd-timestamp-fuzz']
715 type: int
716 description: Neighbor discovery timestamp fuzz factor
717 unique_autoconf_addr:
718 aliases: ['unique-autoconf-addr']
719 type: str
720 description: Enable/disable unique auto config address.
721 choices: ['disable', 'enable']
722 vrip6_link_local:
723 type: str
724 description: Link-local IPv6 address of virtual router.
725 vrrp_virtual_mac6:
726 aliases: ['vrrp-virtual-mac6']
727 type: str
728 description: Enable/disable virtual MAC for VRRP.
729 choices: ['disable', 'enable']
730 vrrp6:
731 type: list
732 elements: dict
733 description: Vrrp6.
734 suboptions:
735 accept_mode:
736 aliases: ['accept-mode']
737 type: str
738 description: Enable/disable accept mode.
739 choices: ['disable', 'enable']
740 adv_interval:
741 aliases: ['adv-interval']
742 type: int
743 description: Advertisement interval
744 preempt:
745 type: str
746 description: Enable/disable preempt mode.
747 choices: ['disable', 'enable']
748 priority:
749 type: int
750 description: Priority of the virtual router
751 start_time:
752 aliases: ['start-time']
753 type: int
754 description: Startup time
755 status:
756 type: str
757 description: Enable/disable VRRP.
758 choices: ['disable', 'enable']
759 vrdst6:
760 type: str
761 description: Monitor the route to this destination.
762 vrgrp:
763 type: int
764 description: VRRP group ID
765 vrid:
766 type: int
767 description: Virtual router identifier
768 vrip6:
769 type: str
770 description: IPv6 address of the virtual router.
771 ignore_default_route:
772 aliases: ['ignore-default-route']
773 type: str
774 description: Enable/disable ignoring of default route when checking destination.
775 choices: ['disable', 'enable']
776 vrdst_priority:
777 aliases: ['vrdst-priority']
778 type: int
779 description: Priority of the virtual router when the virtual router destination becomes unreachable
780 cli_conn6_status:
781 aliases: ['cli-conn6-status']
782 type: int
783 description: Cli conn6 status.
784 ip6_prefix_mode:
785 aliases: ['ip6-prefix-mode']
786 type: str
787 description: Assigning a prefix from DHCP or RA.
788 choices: ['dhcp6', 'ra']
789 ra_send_mtu:
790 aliases: ['ra-send-mtu']
791 type: str
792 description: Enable/disable sending link MTU in RA packet.
793 choices: ['disable', 'enable']
794 ip6_delegated_prefix_iaid:
795 aliases: ['ip6-delegated-prefix-iaid']
796 type: int
797 description: IAID of obtained delegated-prefix from the upstream interface.
798 dhcp6_relay_source_interface:
799 aliases: ['dhcp6-relay-source-interface']
800 type: str
801 description: Enable/disable use of address on this interface as the source address of the relay message.
802 choices: ['disable', 'enable']
803 dhcp6_relay_interface_id:
804 aliases: ['dhcp6-relay-interface-id']
805 type: str
806 description: DHCP6 relay interface ID.
807 dhcp6_relay_source_ip:
808 aliases: ['dhcp6-relay-source-ip']
809 type: str
810 description: IPv6 address used by the DHCP6 relay as its source IP.
811 ip6_adv_rio:
812 aliases: ['ip6-adv-rio']
813 type: str
814 description: Enable/disable sending advertisements with route information option.
815 choices: ['disable', 'enable']
816 ip6_route_pref:
817 aliases: ['ip6-route-pref']
818 type: str
819 description: Set route preference to the interface
820 choices: ['medium', 'high', 'low']
821 secondary_IP:
822 aliases: ['secondary-IP']
823 type: str
824 description: Secondary IP.
825 choices: ['disable', 'enable']
826 secondaryip:
827 type: list
828 elements: dict
829 description: Secondaryip.
830 suboptions:
831 allowaccess:
832 type: list
833 elements: str
834 description: Management access settings for the secondary IP address.
835 choices: ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet',
836 'fgfm', 'auto-ipsec', 'radius-acct', 'probe-response',
837 'capwap', 'dnp', 'ftm', 'fabric', 'speed-test', 'icond',
838 'scim']
839 detectprotocol:
840 type: list
841 elements: str
842 description: Protocols used to detect the server.
843 choices: ['ping', 'tcp-echo', 'udp-echo']
844 detectserver:
845 type: str
846 description: Gateways ping server for this IP.
847 gwdetect:
848 type: str
849 description: Enable/disable detect gateway alive for first.
850 choices: ['disable', 'enable']
851 ha_priority:
852 aliases: ['ha-priority']
853 type: int
854 description: HA election priority for the PING server.
855 id:
856 type: int
857 description: ID.
858 ip:
859 type: str
860 description: Secondary IP address of the interface.
861 ping_serv_status:
862 aliases: ['ping-serv-status']
863 type: int
864 description: Ping serv status.
865 seq:
866 type: int
867 description: Seq.
868 secip_relay_ip:
869 aliases: ['secip-relay-ip']
870 type: str
871 description: DHCP relay IP address.
872 vlanid:
873 type: int
874 description: Vlanid.
875 dhcp_relay_interface_select_method:
876 aliases: ['dhcp-relay-interface-select-method']
877 type: str
878 description: Dhcp relay interface select method.
879 choices: ['auto', 'sdwan', 'specify']
880 vrrp:
881 type: list
882 elements: dict
883 description: Vrrp.
884 suboptions:
885 accept_mode:
886 aliases: ['accept-mode']
887 type: str
888 description: Enable/disable accept mode.
889 choices: ['disable', 'enable']
890 adv_interval:
891 aliases: ['adv-interval']
892 type: int
893 description: Advertisement interval
894 ignore_default_route:
895 aliases: ['ignore-default-route']
896 type: str
897 description: Enable/disable ignoring of default route when checking destination.
898 choices: ['disable', 'enable']
899 preempt:
900 type: str
901 description: Enable/disable preempt mode.
902 choices: ['disable', 'enable']
903 priority:
904 type: int
905 description: Priority of the virtual router
906 proxy_arp:
907 aliases: ['proxy-arp']
908 type: list
909 elements: dict
910 description: Proxy arp.
911 suboptions:
912 id:
913 type: int
914 description: ID.
915 ip:
916 type: str
917 description: Set IP addresses of proxy ARP.
918 start_time:
919 aliases: ['start-time']
920 type: int
921 description: Startup time
922 status:
923 type: str
924 description: Enable/disable this VRRP configuration.
925 choices: ['disable', 'enable']
926 version:
927 type: str
928 description: VRRP version.
929 choices: ['2', '3']
930 vrdst:
931 type: raw
932 description: (list) Monitor the route to this destination.
933 vrdst_priority:
934 aliases: ['vrdst-priority']
935 type: int
936 description: Priority of the virtual router when the virtual router destination becomes unreachable
937 vrgrp:
938 type: int
939 description: VRRP group ID
940 vrid:
941 type: int
942 description: Virtual router identifier
943 vrip:
944 type: str
945 description: IP address of the virtual router.
946 allowaccess:
947 type: list
948 elements: str
949 description: Allowaccess.
950 choices: ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'fgfm',
951 'radius-acct', 'probe-response', 'dnp', 'ftm', 'fabric',
952 'speed-test', 'icond', 'scim']
953 dhcp_relay_request_all_server:
954 aliases: ['dhcp-relay-request-all-server']
955 type: str
956 description: Dhcp relay request all server.
957 choices: ['disable', 'enable']
958 '''
959
960 EXAMPLES = '''
961 - name: Example playbook (generated based on argument schema)
962 hosts: fortimanagers
963 connection: httpapi
964 gather_facts: false
965 tasks:
966 - name: Fsp vlan dynamic mapping
967 fortinet.fortimanager.fmgr_fsp_vlan_dynamicmapping:
968 # workspace_locking_adom: <global or your adom name>
969 adom: <your own value>
970 vlan: <your own value>
971 state: present # <value in [present, absent]>
972 fsp_vlan_dynamicmapping:
973 # _dhcp_status: <value in [disable, enable]>
974 # _scope:
975 # - name: <string>
976 # vdom: <string>
977 # dhcp_server:
978 # auto_configuration: <value in [disable, enable]>
979 # auto_managed_status: <value in [disable, enable]>
980 # conflicted_ip_timeout: <integer>
981 # ddns_auth: <value in [disable, tsig]>
982 # ddns_key: <list or string>
983 # ddns_keyname: <string>
984 # ddns_server_ip: <string>
985 # ddns_ttl: <integer>
986 # ddns_update: <value in [disable, enable]>
987 # ddns_update_override: <value in [disable, enable]>
988 # ddns_zone: <string>
989 # default_gateway: <string>
990 # dhcp_settings_from_fortiipam: <value in [disable, enable]>
991 # dns_server1: <string>
992 # dns_server2: <string>
993 # dns_server3: <string>
994 # dns_server4: <string>
995 # dns_service: <value in [default, specify, local]>
996 # domain: <string>
997 # enable: <value in [disable, enable]>
998 # exclude_range:
999 # - end_ip: <string>
1000 # id: <integer>
1001 # start_ip: <string>
1002 # vci_match: <value in [disable, enable]>
1003 # vci_string: <list or string>
1004 # lease_time: <integer>
1005 # uci_match: <value in [disable, enable]>
1006 # uci_string: <list or string>
1007 # filename: <string>
1008 # forticlient_on_net_status: <value in [disable, enable]>
1009 # id: <integer>
1010 # ip_mode: <value in [range, usrgrp]>
1011 # ip_range:
1012 # - end_ip: <string>
1013 # id: <integer>
1014 # start_ip: <string>
1015 # vci_match: <value in [disable, enable]>
1016 # vci_string: <list or string>
1017 # lease_time: <integer>
1018 # uci_match: <value in [disable, enable]>
1019 # uci_string: <list or string>
1020 # ipsec_lease_hold: <integer>
1021 # lease_time: <integer>
1022 # mac_acl_default_action: <value in [assign, block]>
1023 # netmask: <string>
1024 # next_server: <string>
1025 # ntp_server1: <string>
1026 # ntp_server2: <string>
1027 # ntp_server3: <string>
1028 # ntp_service: <value in [default, specify, local]>
1029 # option1: <list or string>
1030 # option2: <list or string>
1031 # option3: <list or string>
1032 # option4: <string>
1033 # option5: <string>
1034 # option6: <string>
1035 # options:
1036 # - code: <integer>
1037 # id: <integer>
1038 # ip: <list or string>
1039 # type: <value in [hex, string, ip, ...]>
1040 # value: <string>
1041 # vci_match: <value in [disable, enable]>
1042 # vci_string: <list or string>
1043 # uci_match: <value in [disable, enable]>
1044 # uci_string: <list or string>
1045 # reserved_address:
1046 # - action: <value in [assign, block, reserved]>
1047 # circuit_id: <string>
1048 # circuit_id_type: <value in [hex, string]>
1049 # description: <string>
1050 # id: <integer>
1051 # ip: <string>
1052 # mac: <string>
1053 # remote_id: <string>
1054 # remote_id_type: <value in [hex, string]>
1055 # type: <value in [mac, option82]>
1056 # server_type: <value in [regular, ipsec]>
1057 # status: <value in [disable, enable]>
1058 # tftp_server: <list or string>
1059 # timezone: <value in [00, 01, 02, ...]>
1060 # timezone_option: <value in [disable, default, specify]>
1061 # vci_match: <value in [disable, enable]>
1062 # vci_string: <list or string>
1063 # wifi_ac_service: <value in [specify, local]>
1064 # wifi_ac1: <string>
1065 # wifi_ac2: <string>
1066 # wifi_ac3: <string>
1067 # wins_server1: <string>
1068 # wins_server2: <string>
1069 # relay_agent: <string>
1070 # shared_subnet: <value in [disable, enable]>
1071 # interface:
1072 # dhcp_relay_agent_option: <value in [disable, enable]>
1073 # dhcp_relay_ip: <list or string>
1074 # dhcp_relay_service: <value in [disable, enable]>
1075 # dhcp_relay_type: <value in [regular, ipsec]>
1076 # ip: <string>
1077 # ipv6:
1078 # autoconf: <value in [disable, enable]>
1079 # dhcp6_client_options: ["rapid", "iapd", "iana", "dns", "dnsname"]
1080 # dhcp6_information_request: <value in [disable, enable]>
1081 # dhcp6_prefix_delegation: <value in [disable, enable]>
1082 # dhcp6_prefix_hint: <string>
1083 # dhcp6_prefix_hint_plt: <integer>
1084 # dhcp6_prefix_hint_vlt: <integer>
1085 # dhcp6_relay_ip: <string>
1086 # dhcp6_relay_service: <value in [disable, enable]>
1087 # dhcp6_relay_type: <value in [regular]>
1088 # icmp6_send_redirect: <value in [disable, enable]>
1089 # interface_identifier: <string>
1090 # ip6_address: <string>
1091 # ip6_allowaccess: ["https", "ping", "ssh", "snmp", "http", "telnet", "fgfm",
1092 # "capwap", "fabric", "scim", "probe-response"]
1093 # ip6_default_life: <integer>
1094 # ip6_delegated_prefix_list:
1095 # - autonomous_flag: <value in [disable, enable]>
1096 # onlink_flag: <value in [disable, enable]>
1097 # prefix_id: <integer>
1098 # rdnss: <list or string>
1099 # rdnss_service: <value in [delegated, default, specify]>
1100 # subnet: <string>
1101 # upstream_interface: <string>
1102 # delegated_prefix_iaid: <integer>
1103 # dnssl_service: <value in [disable, enable]>
1104 # ip6_dns_server_override: <value in [disable, enable]>
1105 # ip6_extra_addr:
1106 # - prefix: <string>
1107 # ip6_hop_limit: <integer>
1108 # ip6_link_mtu: <integer>
1109 # ip6_manage_flag: <value in [disable, enable]>
1110 # ip6_max_interval: <integer>
1111 # ip6_min_interval: <integer>
1112 # ip6_mode: <value in [static, dhcp, pppoe, ...]>
1113 # ip6_other_flag: <value in [disable, enable]>
1114 # ip6_prefix_list:
1115 # - autonomous_flag: <value in [disable, enable]>
1116 # dnssl: <list or string>
1117 # onlink_flag: <value in [disable, enable]>
1118 # preferred_life_time: <integer>
1119 # prefix: <string>
1120 # rdnss: <list or string>
1121 # valid_life_time: <integer>
1122 # ip6_reachable_time: <integer>
1123 # ip6_retrans_time: <integer>
1124 # ip6_send_adv: <value in [disable, enable]>
1125 # ip6_subnet: <string>
1126 # ip6_upstream_interface: <string>
1127 # nd_cert: <string>
1128 # nd_cga_modifier: <string>
1129 # nd_mode: <value in [basic, SEND-compatible]>
1130 # nd_security_level: <integer>
1131 # nd_timestamp_delta: <integer>
1132 # nd_timestamp_fuzz: <integer>
1133 # unique_autoconf_addr: <value in [disable, enable]>
1134 # vrip6_link_local: <string>
1135 # vrrp_virtual_mac6: <value in [disable, enable]>
1136 # vrrp6:
1137 # - accept_mode: <value in [disable, enable]>
1138 # adv_interval: <integer>
1139 # preempt: <value in [disable, enable]>
1140 # priority: <integer>
1141 # start_time: <integer>
1142 # status: <value in [disable, enable]>
1143 # vrdst6: <string>
1144 # vrgrp: <integer>
1145 # vrid: <integer>
1146 # vrip6: <string>
1147 # ignore_default_route: <value in [disable, enable]>
1148 # vrdst_priority: <integer>
1149 # cli_conn6_status: <integer>
1150 # ip6_prefix_mode: <value in [dhcp6, ra]>
1151 # ra_send_mtu: <value in [disable, enable]>
1152 # ip6_delegated_prefix_iaid: <integer>
1153 # dhcp6_relay_source_interface: <value in [disable, enable]>
1154 # dhcp6_relay_interface_id: <string>
1155 # dhcp6_relay_source_ip: <string>
1156 # ip6_adv_rio: <value in [disable, enable]>
1157 # ip6_route_pref: <value in [medium, high, low]>
1158 # secondary_IP: <value in [disable, enable]>
1159 # secondaryip:
1160 # - allowaccess: ["https", "ping", "ssh", "snmp", "http", "telnet", "fgfm",
1161 # "auto-ipsec", "radius-acct", "probe-response", "capwap", "dnp",
1162 # "ftm", "fabric", "speed-test", "icond", "scim"]
1163 # detectprotocol: ["ping", "tcp-echo", "udp-echo"]
1164 # detectserver: <string>
1165 # gwdetect: <value in [disable, enable]>
1166 # ha_priority: <integer>
1167 # id: <integer>
1168 # ip: <string>
1169 # ping_serv_status: <integer>
1170 # seq: <integer>
1171 # secip_relay_ip: <string>
1172 # vlanid: <integer>
1173 # dhcp_relay_interface_select_method: <value in [auto, sdwan, specify]>
1174 # vrrp:
1175 # - accept_mode: <value in [disable, enable]>
1176 # adv_interval: <integer>
1177 # ignore_default_route: <value in [disable, enable]>
1178 # preempt: <value in [disable, enable]>
1179 # priority: <integer>
1180 # proxy_arp:
1181 # - id: <integer>
1182 # ip: <string>
1183 # start_time: <integer>
1184 # status: <value in [disable, enable]>
1185 # version: <value in [2, 3]>
1186 # vrdst: <list or string>
1187 # vrdst_priority: <integer>
1188 # vrgrp: <integer>
1189 # vrid: <integer>
1190 # vrip: <string>
1191 # allowaccess: ["https", "ping", "ssh", "snmp", "http", "telnet", "fgfm",
1192 # "radius-acct", "probe-response", "dnp", "ftm", "fabric", "speed-test",
1193 # "icond", "scim"]
1194 # dhcp_relay_request_all_server: <value in [disable, enable]>
1195 '''
1196
1197 RETURN = '''
1198 meta:
1199 description: The result of the request.
1200 type: dict
1201 returned: always
1202 contains:
1203 request_url:
1204 description: The full url requested.
1205 returned: always
1206 type: str
1207 sample: /sys/login/user
1208 response_code:
1209 description: The status of api request.
1210 returned: always
1211 type: int
1212 sample: 0
1213 response_data:
1214 description: The api response.
1215 type: list
1216 returned: always
1217 response_message:
1218 description: The descriptive message of the api response.
1219 type: str
1220 returned: always
1221 sample: OK.
1222 system_information:
1223 description: The information of the target system.
1224 type: dict
1225 returned: always
1226 rc:
1227 description: The status the request.
1228 type: int
1229 returned: always
1230 sample: 0
1231 version_check_warning:
1232 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
1233 type: list
1234 returned: complex
1235 '''
1236 from ansible.module_utils.basic import AnsibleModule
1237 from ansible.module_utils.connection import Connection
1238 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
1239 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
1240
1241
1242 def main():
1243 urls_list = [
1244 '/pm/config/adom/{adom}/obj/fsp/vlan/{vlan}/dynamic_mapping',
1245 '/pm/config/global/obj/fsp/vlan/{vlan}/dynamic_mapping'
1246 ]
1247 module_arg_spec = {
1248 'adom': {'required': True, 'type': 'str'},
1249 'vlan': {'required': True, 'type': 'str'},
1250 'revision_note': {'type': 'str'},
1251 'fsp_vlan_dynamicmapping': {
1252 'type': 'dict', 'v_range': [['6.0.0', '']],
1253 'options': {
1254 '_dhcp-status': {'choices': ['disable', 'enable'], 'type': 'str'},
1255 '_scope': {'type': 'list', 'options': {'name': {'type': 'str'}, 'vdom': {'type': 'str'}}, 'elements': 'dict'},
1256 'dhcp-server': {
1257 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1258 'type': 'dict',
1259 'options': {
1260 'auto-configuration': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1261 'auto-managed-status': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1262 'conflicted-ip-timeout': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1263 'ddns-auth': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'tsig'], 'type': 'str'},
1264 'ddns-key': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'no_log': True, 'type': 'raw'},
1265 'ddns-keyname': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'no_log': True, 'type': 'str'},
1266 'ddns-server-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1267 'ddns-ttl': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1268 'ddns-update': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1269 'ddns-update-override': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1270 'ddns-zone': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1271 'default-gateway': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1272 'dhcp-settings-from-fortiipam': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1273 'dns-server1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1274 'dns-server2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1275 'dns-server3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1276 'dns-server4': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1277 'dns-service': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['default', 'specify', 'local'], 'type': 'str'},
1278 'domain': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1279 'enable': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1280 'exclude-range': {
1281 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1282 'type': 'list',
1283 'options': {
1284 'end-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1285 'id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1286 'start-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1287 'vci-match': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1288 'vci-string': {'v_range': [['7.2.1', '']], 'type': 'raw'},
1289 'lease-time': {'v_range': [['7.2.2', '']], 'type': 'int'},
1290 'uci-match': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1291 'uci-string': {'v_range': [['7.2.2', '']], 'type': 'raw'}
1292 },
1293 'elements': 'dict'
1294 },
1295 'filename': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1296 'forticlient-on-net-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1297 'id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1298 'ip-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['range', 'usrgrp'], 'type': 'str'},
1299 'ip-range': {
1300 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1301 'type': 'list',
1302 'options': {
1303 'end-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1304 'id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1305 'start-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1306 'vci-match': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1307 'vci-string': {'v_range': [['7.2.1', '']], 'type': 'raw'},
1308 'lease-time': {'v_range': [['7.2.2', '']], 'type': 'int'},
1309 'uci-match': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1310 'uci-string': {'v_range': [['7.2.2', '']], 'type': 'raw'}
1311 },
1312 'elements': 'dict'
1313 },
1314 'ipsec-lease-hold': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1315 'lease-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1316 'mac-acl-default-action': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['assign', 'block'], 'type': 'str'},
1317 'netmask': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1318 'next-server': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1319 'ntp-server1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1320 'ntp-server2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1321 'ntp-server3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1322 'ntp-service': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['default', 'specify', 'local'], 'type': 'str'},
1323 'option1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1324 'option2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1325 'option3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1326 'option4': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1327 'option5': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1328 'option6': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1329 'options': {
1330 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1331 'type': 'list',
1332 'options': {
1333 'code': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1334 'id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1335 'ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1336 'type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['hex', 'string', 'ip', 'fqdn'], 'type': 'str'},
1337 'value': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1338 'vci-match': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1339 'vci-string': {'v_range': [['7.2.1', '']], 'type': 'raw'},
1340 'uci-match': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1341 'uci-string': {'v_range': [['7.2.2', '']], 'type': 'raw'}
1342 },
1343 'elements': 'dict'
1344 },
1345 'reserved-address': {
1346 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1347 'type': 'list',
1348 'options': {
1349 'action': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['assign', 'block', 'reserved'], 'type': 'str'},
1350 'circuit-id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1351 'circuit-id-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['hex', 'string'], 'type': 'str'},
1352 'description': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1353 'id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1354 'ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1355 'mac': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1356 'remote-id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1357 'remote-id-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['hex', 'string'], 'type': 'str'},
1358 'type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['mac', 'option82'], 'type': 'str'}
1359 },
1360 'elements': 'dict'
1361 },
1362 'server-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['regular', 'ipsec'], 'type': 'str'},
1363 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1364 'tftp-server': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1365 'timezone': {
1366 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1367 'choices': [
1368 '00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19',
1369 '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39',
1370 '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59',
1371 '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79',
1372 '80', '81', '82', '83', '84', '85', '86', '87'
1373 ],
1374 'type': 'str'
1375 },
1376 'timezone-option': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'default', 'specify'], 'type': 'str'},
1377 'vci-match': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1378 'vci-string': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1379 'wifi-ac-service': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['specify', 'local'], 'type': 'str'},
1380 'wifi-ac1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1381 'wifi-ac2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1382 'wifi-ac3': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1383 'wins-server1': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1384 'wins-server2': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1385 'relay-agent': {'v_range': [['7.4.0', '']], 'type': 'str'},
1386 'shared-subnet': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1387 }
1388 },
1389 'interface': {
1390 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1391 'type': 'dict',
1392 'options': {
1393 'dhcp-relay-agent-option': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1394 'dhcp-relay-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1395 'dhcp-relay-service': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1396 'dhcp-relay-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['regular', 'ipsec'], 'type': 'str'},
1397 'ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1398 'ipv6': {
1399 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1400 'type': 'dict',
1401 'options': {
1402 'autoconf': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1403 'dhcp6-client-options': {
1404 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1405 'type': 'list',
1406 'choices': ['rapid', 'iapd', 'iana', 'dns', 'dnsname'],
1407 'elements': 'str'
1408 },
1409 'dhcp6-information-request': {
1410 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1411 'choices': ['disable', 'enable'],
1412 'type': 'str'
1413 },
1414 'dhcp6-prefix-delegation': {
1415 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1416 'choices': ['disable', 'enable'],
1417 'type': 'str'
1418 },
1419 'dhcp6-prefix-hint': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1420 'dhcp6-prefix-hint-plt': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1421 'dhcp6-prefix-hint-vlt': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1422 'dhcp6-relay-ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1423 'dhcp6-relay-service': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1424 'dhcp6-relay-type': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['regular'], 'type': 'str'},
1425 'icmp6-send-redirect': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1426 'interface-identifier': {'v_range': [['6.4.5', '']], 'type': 'str'},
1427 'ip6-address': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1428 'ip6-allowaccess': {
1429 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1430 'type': 'list',
1431 'choices': ['https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'fgfm', 'capwap', 'fabric', 'scim', 'probe-response'],
1432 'elements': 'str'
1433 },
1434 'ip6-default-life': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1435 'ip6-delegated-prefix-list': {
1436 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1437 'type': 'list',
1438 'options': {
1439 'autonomous-flag': {
1440 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1441 'choices': ['disable', 'enable'],
1442 'type': 'str'
1443 },
1444 'onlink-flag': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1445 'prefix-id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1446 'rdnss': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1447 'rdnss-service': {
1448 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1449 'choices': ['delegated', 'default', 'specify'],
1450 'type': 'str'
1451 },
1452 'subnet': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1453 'upstream-interface': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1454 'delegated-prefix-iaid': {'v_range': [['7.0.2', '']], 'type': 'int'},
1455 'dnssl-service': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1456 },
1457 'elements': 'dict'
1458 },
1459 'ip6-dns-server-override': {
1460 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1461 'choices': ['disable', 'enable'],
1462 'type': 'str'
1463 },
1464 'ip6-extra-addr': {
1465 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1466 'type': 'list',
1467 'options': {'prefix': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'}},
1468 'elements': 'dict'
1469 },
1470 'ip6-hop-limit': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1471 'ip6-link-mtu': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1472 'ip6-manage-flag': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1473 'ip6-max-interval': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1474 'ip6-min-interval': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1475 'ip6-mode': {
1476 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1477 'choices': ['static', 'dhcp', 'pppoe', 'delegated'],
1478 'type': 'str'
1479 },
1480 'ip6-other-flag': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1481 'ip6-prefix-list': {
1482 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1483 'type': 'list',
1484 'options': {
1485 'autonomous-flag': {
1486 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1487 'choices': ['disable', 'enable'],
1488 'type': 'str'
1489 },
1490 'dnssl': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1491 'onlink-flag': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1492 'preferred-life-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1493 'prefix': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1494 'rdnss': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'raw'},
1495 'valid-life-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'}
1496 },
1497 'elements': 'dict'
1498 },
1499 'ip6-reachable-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1500 'ip6-retrans-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1501 'ip6-send-adv': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1502 'ip6-subnet': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1503 'ip6-upstream-interface': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1504 'nd-cert': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1505 'nd-cga-modifier': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1506 'nd-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['basic', 'SEND-compatible'], 'type': 'str'},
1507 'nd-security-level': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1508 'nd-timestamp-delta': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1509 'nd-timestamp-fuzz': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1510 'unique-autoconf-addr': {'v_range': [['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1511 'vrip6_link_local': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1512 'vrrp-virtual-mac6': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1513 'vrrp6': {
1514 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1515 'type': 'list',
1516 'options': {
1517 'accept-mode': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1518 'adv-interval': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1519 'preempt': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1520 'priority': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1521 'start-time': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1522 'status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1523 'vrdst6': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1524 'vrgrp': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1525 'vrid': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1526 'vrip6': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1527 'ignore-default-route': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1528 'vrdst-priority': {'v_range': [['7.6.0', '']], 'type': 'int'}
1529 },
1530 'elements': 'dict'
1531 },
1532 'cli-conn6-status': {'v_range': [['7.0.0', '']], 'type': 'int'},
1533 'ip6-prefix-mode': {'v_range': [['7.0.0', '']], 'choices': ['dhcp6', 'ra'], 'type': 'str'},
1534 'ra-send-mtu': {'v_range': [['6.4.6', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1535 'ip6-delegated-prefix-iaid': {'v_range': [['7.0.2', '']], 'type': 'int'},
1536 'dhcp6-relay-source-interface': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1537 'dhcp6-relay-interface-id': {'v_range': [['7.4.1', '']], 'type': 'str'},
1538 'dhcp6-relay-source-ip': {'v_range': [['7.4.1', '']], 'type': 'str'},
1539 'ip6-adv-rio': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1540 'ip6-route-pref': {'v_range': [['7.6.2', '']], 'choices': ['medium', 'high', 'low'], 'type': 'str'}
1541 }
1542 },
1543 'secondary-IP': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1544 'secondaryip': {
1545 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1546 'type': 'list',
1547 'options': {
1548 'allowaccess': {
1549 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']],
1550 'type': 'list',
1551 'choices': [
1552 'https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'fgfm', 'auto-ipsec', 'radius-acct', 'probe-response',
1553 'capwap', 'dnp', 'ftm', 'fabric', 'speed-test', 'icond', 'scim'
1554 ],
1555 'elements': 'str'
1556 },
1557 'detectprotocol': {
1558 'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.0']],
1559 'type': 'list',
1560 'choices': ['ping', 'tcp-echo', 'udp-echo'],
1561 'elements': 'str'
1562 },
1563 'detectserver': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.0']], 'type': 'str'},
1564 'gwdetect': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.0']], 'choices': ['disable', 'enable'], 'type': 'str'},
1565 'ha-priority': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.0']], 'type': 'int'},
1566 'id': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1567 'ip': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'str'},
1568 'ping-serv-status': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '7.2.0']], 'type': 'int'},
1569 'seq': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1570 'secip-relay-ip': {'v_range': [['7.4.0', '']], 'type': 'str'}
1571 },
1572 'elements': 'dict'
1573 },
1574 'vlanid': {'v_range': [['6.2.8', '6.2.13'], ['6.4.5', '']], 'type': 'int'},
1575 'dhcp-relay-interface-select-method': {
1576 'v_range': [['6.4.8', '6.4.15'], ['7.0.4', '']],
1577 'choices': ['auto', 'sdwan', 'specify'],
1578 'type': 'str'
1579 },
1580 'vrrp': {
1581 'v_range': [['7.4.0', '']],
1582 'type': 'list',
1583 'options': {
1584 'accept-mode': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1585 'adv-interval': {'v_range': [['7.4.0', '']], 'type': 'int'},
1586 'ignore-default-route': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1587 'preempt': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1588 'priority': {'v_range': [['7.4.0', '']], 'type': 'int'},
1589 'proxy-arp': {
1590 'v_range': [['7.4.0', '']],
1591 'type': 'list',
1592 'options': {'id': {'v_range': [['7.4.0', '']], 'type': 'int'}, 'ip': {'v_range': [['7.4.0', '']], 'type': 'str'}},
1593 'elements': 'dict'
1594 },
1595 'start-time': {'v_range': [['7.4.0', '']], 'type': 'int'},
1596 'status': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1597 'version': {'v_range': [['7.4.0', '']], 'choices': ['2', '3'], 'type': 'str'},
1598 'vrdst': {'v_range': [['7.4.0', '']], 'type': 'raw'},
1599 'vrdst-priority': {'v_range': [['7.4.0', '']], 'type': 'int'},
1600 'vrgrp': {'v_range': [['7.4.0', '']], 'type': 'int'},
1601 'vrid': {'v_range': [['7.4.0', '']], 'type': 'int'},
1602 'vrip': {'v_range': [['7.4.0', '']], 'type': 'str'}
1603 },
1604 'elements': 'dict'
1605 },
1606 'allowaccess': {
1607 'v_range': [['7.4.7', '7.4.10'], ['7.6.3', '']],
1608 'type': 'list',
1609 'choices': [
1610 'https', 'ping', 'ssh', 'snmp', 'http', 'telnet', 'fgfm', 'radius-acct', 'probe-response', 'dnp', 'ftm', 'fabric',
1611 'speed-test', 'icond', 'scim'
1612 ],
1613 'elements': 'str'
1614 },
1615 'dhcp-relay-request-all-server': {
1616 'v_range': [['7.4.7', '7.4.10'], ['7.6.3', '']],
1617 'choices': ['disable', 'enable'],
1618 'type': 'str'
1619 }
1620 }
1621 }
1622 }
1623 }
1624 }
1625
1626 module_option_spec = get_module_arg_spec('full crud')
1627 module_arg_spec.update(module_option_spec)
1628 check_galaxy_version(module_arg_spec)
1629 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'fsp_vlan_dynamicmapping'),
1630 supports_check_mode=True)
1631 if not module._socket_path:
1632 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1633 connection = Connection(module._socket_path)
1634 fmgr = NAPIManager('full crud', module_arg_spec, urls_list,
1635 None, 'data', module, connection)
1636 fmgr.process_crud()
1637 module.exit_json(meta=module.params)
1638
1639
1640 if __name__ == '__main__':
1641 main()