Debian Codegraph @

ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_wanprof_system_sdwan.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_wanprof_system_sdwan
15 short_description: Configure redundant internet connections using SD-WAN
16 version_added: "2.1.0"
17 extends_documentation_fragment:
18 - fortinet.fortimanager.general
19 - fortinet.fortimanager.general.partial_crud
20 options:
21 adom:
22 description: The parameter (adom) in requested url.
23 type: str
24 required: true
25 wanprof:
26 description: The parameter (wanprof) in requested url.
27 type: str
28 required: true
29 wanprof_system_sdwan:
30 description: The top level parameters set.
31 required: false
32 type: dict
33 suboptions:
34 duplication:
35 type: list
36 elements: dict
37 description: Duplication.
38 suboptions:
39 dstaddr:
40 type: raw
41 description: (list or str) Destination address or address group names.
42 dstaddr6:
43 type: raw
44 description: (list or str) Destination address6 or address6 group names.
45 dstintf:
46 type: raw
47 description: (list or str) Outgoing
48 id:
49 type: int
50 description: Duplication rule ID
51 packet_de_duplication:
52 aliases: ['packet-de-duplication']
53 type: str
54 description: Enable/disable discarding of packets that have been duplicated.
55 choices: ['disable', 'enable']
56 packet_duplication:
57 aliases: ['packet-duplication']
58 type: str
59 description: Configure packet duplication method.
60 choices: ['disable', 'force', 'on-demand']
61 service:
62 type: raw
63 description: (list or str) Service and service group name.
64 srcaddr:
65 type: raw
66 description: (list or str) Source address or address group names.
67 srcaddr6:
68 type: raw
69 description: (list or str) Source address6 or address6 group names.
70 srcintf:
71 type: raw
72 description: (list or str) Incoming
73 service_id:
74 aliases: ['service-id']
75 type: raw
76 description: (list or str) SD-WAN service rule ID list.
77 sla_match_service:
78 aliases: ['sla-match-service']
79 type: str
80 description: Enable/disable packet duplication matching health-check SLAs in service rule.
81 choices: ['disable', 'enable']
82 duplication_max_num:
83 aliases: ['duplication-max-num']
84 type: int
85 description: Maximum number of interface members a packet is duplicated in the SD-WAN zone
86 fail_detect:
87 aliases: ['fail-detect']
88 type: str
89 description: Enable/disable SD-WAN Internet connection status checking
90 choices: ['disable', 'enable']
91 health_check:
92 aliases: ['health-check']
93 type: list
94 elements: dict
95 description: Health check.
96 suboptions:
97 _dynamic_server:
98 aliases: ['_dynamic-server']
99 type: str
100 description: Dynamic server.
101 addr_mode:
102 aliases: ['addr-mode']
103 type: str
104 description: Address mode
105 choices: ['ipv4', 'ipv6']
106 diffservcode:
107 type: str
108 description: Differentiated services code point
109 dns_match_ip:
110 aliases: ['dns-match-ip']
111 type: str
112 description: Response IP expected from DNS server if the protocol is DNS.
113 dns_request_domain:
114 aliases: ['dns-request-domain']
115 type: str
116 description: Fully qualified domain name to resolve for the DNS probe.
117 failtime:
118 type: int
119 description: Number of failures before server is considered lost
120 ftp_file:
121 aliases: ['ftp-file']
122 type: str
123 description: Full path and file name on the FTP server to download for FTP health-check to probe.
124 ftp_mode:
125 aliases: ['ftp-mode']
126 type: str
127 description: FTP mode.
128 choices: ['passive', 'port']
129 ha_priority:
130 aliases: ['ha-priority']
131 type: int
132 description: HA election priority
133 http_agent:
134 aliases: ['http-agent']
135 type: str
136 description: String in the http-agent field in the HTTP header.
137 http_get:
138 aliases: ['http-get']
139 type: str
140 description: URL used to communicate with the server if the protocol if the protocol is HTTP.
141 http_match:
142 aliases: ['http-match']
143 type: str
144 description: Response string expected from the server if the protocol is HTTP.
145 interval:
146 type: int
147 description: Status check interval in milliseconds, or the time between attempting to connect to the server
148 members:
149 type: raw
150 description: (list or str) Member sequence number list.
151 name:
152 type: str
153 description: Status check or health check name.
154 packet_size:
155 aliases: ['packet-size']
156 type: int
157 description: Packet size of a twamp test session,
158 password:
159 type: raw
160 description: (list) Twamp controller password in authentication mode
161 port:
162 type: int
163 description: Port number used to communicate with the server over the selected protocol
164 probe_count:
165 aliases: ['probe-count']
166 type: int
167 description: Number of most recent probes that should be used to calculate latency and jitter
168 probe_packets:
169 aliases: ['probe-packets']
170 type: str
171 description: Enable/disable transmission of probe packets.
172 choices: ['disable', 'enable']
173 probe_timeout:
174 aliases: ['probe-timeout']
175 type: int
176 description: Time to wait before a probe packet is considered lost
177 protocol:
178 type: str
179 description: Protocol used to determine if the FortiGate can communicate with the server.
180 choices: ['ping', 'tcp-echo', 'udp-echo', 'http', 'twamp', 'ping6', 'dns',
181 'tcp-connect', 'ftp', 'https']
182 quality_measured_method:
183 aliases: ['quality-measured-method']
184 type: str
185 description: Method to measure the quality of tcp-connect.
186 choices: ['half-close', 'half-open']
187 recoverytime:
188 type: int
189 description: Number of successful responses received before server is considered recovered
190 security_mode:
191 aliases: ['security-mode']
192 type: str
193 description: Twamp controller security mode.
194 choices: ['none', 'authentication']
195 server:
196 type: raw
197 description: (list) IP address or FQDN name of the server.
198 sla:
199 type: list
200 elements: dict
201 description: Sla.
202 suboptions:
203 id:
204 type: int
205 description: SLA ID.
206 jitter_threshold:
207 aliases: ['jitter-threshold']
208 type: int
209 description: Jitter for SLA to make decision in milliseconds.
210 latency_threshold:
211 aliases: ['latency-threshold']
212 type: int
213 description: Latency for SLA to make decision in milliseconds.
214 link_cost_factor:
215 aliases: ['link-cost-factor']
216 type: list
217 elements: str
218 description: Criteria on which to base link selection.
219 choices: ['latency', 'jitter', 'packet-loss', 'mos', 'remote',
220 'custom-profile-1']
221 packetloss_threshold:
222 aliases: ['packetloss-threshold']
223 type: int
224 description: Packet loss for SLA to make decision in percentage.
225 mos_threshold:
226 aliases: ['mos-threshold']
227 type: str
228 description: Minimum Mean Opinion Score for SLA to be marked as pass.
229 priority_in_sla:
230 aliases: ['priority-in-sla']
231 type: int
232 description: Value to be distributed into routing table when in-sla
233 priority_out_sla:
234 aliases: ['priority-out-sla']
235 type: int
236 description: Value to be distributed into routing table when out-sla
237 custom_profile_threshold:
238 aliases: ['custom-profile-threshold']
239 type: int
240 description: Custom profile threshold for SLA to be marked as pass
241 sla_fail_log_period:
242 aliases: ['sla-fail-log-period']
243 type: int
244 description: Time interval in seconds that SLA fail log messages will be generated
245 sla_pass_log_period:
246 aliases: ['sla-pass-log-period']
247 type: int
248 description: Time interval in seconds that SLA pass log messages will be generated
249 system_dns:
250 aliases: ['system-dns']
251 type: str
252 description: Enable/disable system DNS as the probe server.
253 choices: ['disable', 'enable']
254 threshold_alert_jitter:
255 aliases: ['threshold-alert-jitter']
256 type: int
257 description: Alert threshold for jitter
258 threshold_alert_latency:
259 aliases: ['threshold-alert-latency']
260 type: int
261 description: Alert threshold for latency
262 threshold_alert_packetloss:
263 aliases: ['threshold-alert-packetloss']
264 type: int
265 description: Alert threshold for packet loss
266 threshold_warning_jitter:
267 aliases: ['threshold-warning-jitter']
268 type: int
269 description: Warning threshold for jitter
270 threshold_warning_latency:
271 aliases: ['threshold-warning-latency']
272 type: int
273 description: Warning threshold for latency
274 threshold_warning_packetloss:
275 aliases: ['threshold-warning-packetloss']
276 type: int
277 description: Warning threshold for packet loss
278 update_cascade_interface:
279 aliases: ['update-cascade-interface']
280 type: str
281 description: Enable/disable update cascade interface.
282 choices: ['disable', 'enable']
283 update_static_route:
284 aliases: ['update-static-route']
285 type: str
286 description: Enable/disable updating the static route.
287 choices: ['disable', 'enable']
288 user:
289 type: str
290 description: The user name to access probe server.
291 detect_mode:
292 aliases: ['detect-mode']
293 type: str
294 description: The mode determining how to detect the server.
295 choices: ['active', 'passive', 'prefer-passive', 'remote', 'agent-based']
296 mos_codec:
297 aliases: ['mos-codec']
298 type: str
299 description: Codec to use for MOS calculation
300 choices: ['g711', 'g722', 'g729']
301 source:
302 type: str
303 description: Source IP address used in the health-check packet to the server.
304 vrf:
305 type: int
306 description: Virtual Routing Forwarding ID.
307 embed_measured_health:
308 aliases: ['embed-measured-health']
309 type: str
310 description: Enable/disable embedding measured health information.
311 choices: ['disable', 'enable']
312 sla_id_redistribute:
313 aliases: ['sla-id-redistribute']
314 type: int
315 description: Select the ID from the SLA sub-table.
316 class_id:
317 aliases: ['class-id']
318 type: str
319 description: Traffic class ID.
320 source6:
321 type: str
322 description: Source IPv6 addressused in the health-check packet to server.
323 fortiguard:
324 type: str
325 description: Enable/disable use of FortiGuard predefined server.
326 choices: ['disable', 'enable']
327 fortiguard_name:
328 aliases: ['fortiguard-name']
329 type: raw
330 description: (list) Predefined health-check target name.
331 agent_probe_timeout:
332 aliases: ['agent-probe-timeout']
333 type: int
334 description: Time to wait before a probe packet is considered lost when detect-mode is agent
335 remote_probe_timeout:
336 aliases: ['remote-probe-timeout']
337 type: int
338 description: Time to wait before a probe packet is considered lost when detect-mode is remote
339 bandwidth_weight:
340 aliases: ['bandwidth-weight']
341 type: int
342 description: Coefficient of reciprocal of available bidirectional bandwidth in the formula of custom-profile-1.
343 jitter_weight:
344 aliases: ['jitter-weight']
345 type: int
346 description: Coefficient of jitter in the formula of custom-profile-1.
347 latency_weight:
348 aliases: ['latency-weight']
349 type: int
350 description: Coefficient of latency in the formula of custom-profile-1.
351 packet_loss_weight:
352 aliases: ['packet-loss-weight']
353 type: int
354 description: Coefficient of packet-loss in the formula of custom-profile-1.
355 update_bgp_route:
356 aliases: ['update-bgp-route']
357 type: str
358 description: Enable/disable updating the BGP route.
359 choices: ['disable', 'enable']
360 load_balance_mode:
361 aliases: ['load-balance-mode']
362 type: str
363 description: Algorithm or mode to use for load balancing Internet traffic to SD-WAN members.
364 choices: ['source-ip-based', 'weight-based', 'usage-based',
365 'source-dest-ip-based', 'measured-volume-based']
366 members:
367 type: list
368 elements: dict
369 description: Members.
370 suboptions:
371 _dynamic_member:
372 aliases: ['_dynamic-member']
373 type: str
374 description: Dynamic member.
375 comment:
376 type: str
377 description: Comments.
378 cost:
379 type: int
380 description: Cost of this interface for services in SLA mode
381 gateway:
382 type: str
383 description: The default gateway for this interface.
384 gateway6:
385 type: str
386 description: IPv6 gateway.
387 ingress_spillover_threshold:
388 aliases: ['ingress-spillover-threshold']
389 type: int
390 description: Ingress spillover threshold for this interface
391 interface:
392 type: str
393 description: Interface name.
394 priority:
395 type: int
396 description: Priority of the interface
397 seq_num:
398 aliases: ['seq-num']
399 type: int
400 description: Sequence number
401 source:
402 type: str
403 description: Source IP address used in the health-check packet to the server.
404 source6:
405 type: str
406 description: Source IPv6 address used in the health-check packet to the server.
407 spillover_threshold:
408 aliases: ['spillover-threshold']
409 type: int
410 description: Egress spillover threshold for this interface
411 status:
412 type: str
413 description: Enable/disable this interface in the SD-WAN.
414 choices: ['disable', 'enable']
415 volume_ratio:
416 aliases: ['volume-ratio']
417 type: int
418 description: Measured volume ratio
419 weight:
420 type: int
421 description: Weight of this interface for weighted load balancing.
422 zone:
423 type: str
424 description: Zone name.
425 priority6:
426 type: int
427 description: Priority of the interface for IPv6
428 preferred_source:
429 aliases: ['preferred-source']
430 type: str
431 description: Preferred source of route for this member.
432 transport_group:
433 aliases: ['transport-group']
434 type: int
435 description: Measured transport group
436 priority_in_sla:
437 aliases: ['priority-in-sla']
438 type: int
439 description: Preferred priority of routes to this member when this member is in-sla
440 priority_out_sla:
441 aliases: ['priority-out-sla']
442 type: int
443 description: Preferred priority of routes to this member when this member is out-of-sla
444 neighbor:
445 type: list
446 elements: dict
447 description: Neighbor.
448 suboptions:
449 health_check:
450 aliases: ['health-check']
451 type: str
452 description: SD-WAN health-check name.
453 ip:
454 type: str
455 description: IP/IPv6 address of neighbor.
456 member:
457 type: raw
458 description: (list or str) Member sequence number.
459 role:
460 type: str
461 description: Role of neighbor.
462 choices: ['primary', 'secondary', 'standalone']
463 sla_id:
464 aliases: ['sla-id']
465 type: int
466 description: SLA ID.
467 minimum_sla_meet_members:
468 aliases: ['minimum-sla-meet-members']
469 type: int
470 description: Minimum number of members which meet SLA when the neighbor is preferred.
471 mode:
472 type: str
473 description: What metric to select the neighbor.
474 choices: ['sla', 'speedtest']
475 service_id:
476 aliases: ['service-id']
477 type: str
478 description: SD-WAN service ID to work with the neighbor.
479 route_metric:
480 aliases: ['route-metric']
481 type: str
482 description: Route-metric of neighbor.
483 choices: ['preferable', 'priority']
484 neighbor_hold_boot_time:
485 aliases: ['neighbor-hold-boot-time']
486 type: int
487 description: Waiting period in seconds when switching from the primary neighbor to the secondary neighbor from the neighbor start.
488 neighbor_hold_down:
489 aliases: ['neighbor-hold-down']
490 type: str
491 description: Enable/disable hold switching from the secondary neighbor to the primary neighbor.
492 choices: ['disable', 'enable']
493 neighbor_hold_down_time:
494 aliases: ['neighbor-hold-down-time']
495 type: int
496 description: Waiting period in seconds when switching from the secondary neighbor to the primary neighbor when hold-down is disabled.
497 service:
498 type: list
499 elements: dict
500 description: Service.
501 suboptions:
502 addr_mode:
503 aliases: ['addr-mode']
504 type: str
505 description: Address mode
506 choices: ['ipv4', 'ipv6']
507 bandwidth_weight:
508 aliases: ['bandwidth-weight']
509 type: int
510 description: Coefficient of reciprocal of available bidirectional bandwidth in the formula of custom-profile-1.
511 default:
512 type: str
513 description: Enable/disable use of SD-WAN as default service.
514 choices: ['disable', 'enable']
515 dscp_forward:
516 aliases: ['dscp-forward']
517 type: str
518 description: Enable/disable forward traffic DSCP tag.
519 choices: ['disable', 'enable']
520 dscp_forward_tag:
521 aliases: ['dscp-forward-tag']
522 type: str
523 description: Forward traffic DSCP tag.
524 dscp_reverse:
525 aliases: ['dscp-reverse']
526 type: str
527 description: Enable/disable reverse traffic DSCP tag.
528 choices: ['disable', 'enable']
529 dscp_reverse_tag:
530 aliases: ['dscp-reverse-tag']
531 type: str
532 description: Reverse traffic DSCP tag.
533 dst:
534 type: raw
535 description: (list or str) Destination address name.
536 dst_negate:
537 aliases: ['dst-negate']
538 type: str
539 description: Enable/disable negation of destination address match.
540 choices: ['disable', 'enable']
541 dst6:
542 type: raw
543 description: (list or str) Destination address6 name.
544 end_port:
545 aliases: ['end-port']
546 type: int
547 description: End destination port number.
548 gateway:
549 type: str
550 description: Enable/disable SD-WAN service gateway.
551 choices: ['disable', 'enable']
552 groups:
553 type: raw
554 description: (list or str) User groups.
555 hash_mode:
556 aliases: ['hash-mode']
557 type: str
558 description: Hash algorithm for selected priority members for load balance mode.
559 choices: ['round-robin', 'source-ip-based', 'source-dest-ip-based',
560 'inbandwidth', 'outbandwidth', 'bibandwidth']
561 health_check:
562 aliases: ['health-check']
563 type: raw
564 description: (list or str) Health check list.
565 hold_down_time:
566 aliases: ['hold-down-time']
567 type: int
568 description: Waiting period in seconds when switching from the back-up member to the primary member
569 id:
570 type: int
571 description: SD-WAN rule ID
572 input_device:
573 aliases: ['input-device']
574 type: raw
575 description: (list or str) Source interface name.
576 input_device_negate:
577 aliases: ['input-device-negate']
578 type: str
579 description: Enable/disable negation of input device match.
580 choices: ['disable', 'enable']
581 internet_service:
582 aliases: ['internet-service']
583 type: str
584 description: Enable/disable use of Internet service for application-based load balancing.
585 choices: ['disable', 'enable']
586 internet_service_app_ctrl:
587 aliases: ['internet-service-app-ctrl']
588 type: raw
589 description: (list) Application control based Internet Service ID list.
590 internet_service_app_ctrl_group:
591 aliases: ['internet-service-app-ctrl-group']
592 type: raw
593 description: (list or str) Application control based Internet Service group list.
594 internet_service_custom:
595 aliases: ['internet-service-custom']
596 type: raw
597 description: (list or str) Custom Internet service name list.
598 internet_service_custom_group:
599 aliases: ['internet-service-custom-group']
600 type: raw
601 description: (list or str) Custom Internet Service group list.
602 internet_service_group:
603 aliases: ['internet-service-group']
604 type: raw
605 description: (list or str) Internet Service group list.
606 internet_service_name:
607 aliases: ['internet-service-name']
608 type: raw
609 description: (list or str) Internet service name list.
610 jitter_weight:
611 aliases: ['jitter-weight']
612 type: int
613 description: Coefficient of jitter in the formula of custom-profile-1.
614 latency_weight:
615 aliases: ['latency-weight']
616 type: int
617 description: Coefficient of latency in the formula of custom-profile-1.
618 link_cost_factor:
619 aliases: ['link-cost-factor']
620 type: str
621 description: Link cost factor.
622 choices: ['latency', 'jitter', 'packet-loss', 'inbandwidth',
623 'outbandwidth', 'bibandwidth', 'custom-profile-1']
624 link_cost_threshold:
625 aliases: ['link-cost-threshold']
626 type: int
627 description: Percentage threshold change of link cost values that will result in policy route regeneration
628 minimum_sla_meet_members:
629 aliases: ['minimum-sla-meet-members']
630 type: int
631 description: Minimum number of members which meet SLA.
632 mode:
633 type: str
634 description: Control how the SD-WAN rule sets the priority of interfaces in the SD-WAN.
635 choices: ['auto', 'manual', 'priority', 'sla', 'load-balance']
636 name:
637 type: str
638 description: SD-WAN rule name.
639 packet_loss_weight:
640 aliases: ['packet-loss-weight']
641 type: int
642 description: Coefficient of packet-loss in the formula of custom-profile-1.
643 priority_members:
644 aliases: ['priority-members']
645 type: raw
646 description: (list or str) Member sequence number list.
647 protocol:
648 type: int
649 description: Protocol number.
650 quality_link:
651 aliases: ['quality-link']
652 type: int
653 description: Quality grade.
654 role:
655 type: str
656 description: Service role to work with neighbor.
657 choices: ['primary', 'secondary', 'standalone']
658 route_tag:
659 aliases: ['route-tag']
660 type: int
661 description: IPv4 route map route-tag.
662 sla:
663 type: list
664 elements: dict
665 description: Sla.
666 suboptions:
667 health_check:
668 aliases: ['health-check']
669 type: str
670 description: SD-WAN health-check.
671 id:
672 type: int
673 description: SLA ID.
674 sla_compare_method:
675 aliases: ['sla-compare-method']
676 type: str
677 description: Method to compare SLA value for SLA mode.
678 choices: ['order', 'number']
679 src:
680 type: raw
681 description: (list or str) Source address name.
682 src_negate:
683 aliases: ['src-negate']
684 type: str
685 description: Enable/disable negation of source address match.
686 choices: ['disable', 'enable']
687 src6:
688 type: raw
689 description: (list or str) Source address6 name.
690 standalone_action:
691 aliases: ['standalone-action']
692 type: str
693 description: Enable/disable service when selected neighbor role is standalone while service role is not standalone.
694 choices: ['disable', 'enable']
695 start_port:
696 aliases: ['start-port']
697 type: int
698 description: Start destination port number.
699 status:
700 type: str
701 description: Enable/disable SD-WAN service.
702 choices: ['disable', 'enable']
703 tos:
704 type: str
705 description: Type of service bit pattern.
706 tos_mask:
707 aliases: ['tos-mask']
708 type: str
709 description: Type of service evaluated bits.
710 users:
711 type: raw
712 description: (list or str) User name.
713 tie_break:
714 aliases: ['tie-break']
715 type: str
716 description: Method of selecting member if more than one meets the SLA.
717 choices: ['zone', 'cfg-order', 'fib-best-match', 'input-device', 'priority']
718 use_shortcut_sla:
719 aliases: ['use-shortcut-sla']
720 type: str
721 description: Enable/disable use of ADVPN shortcut for quality comparison.
722 choices: ['disable', 'enable']
723 input_zone:
724 aliases: ['input-zone']
725 type: raw
726 description: (list) Source input-zone name.
727 internet_service_app_ctrl_category:
728 aliases: ['internet-service-app-ctrl-category']
729 type: raw
730 description: (list) IDs of one or more application control categories.
731 passive_measurement:
732 aliases: ['passive-measurement']
733 type: str
734 description: Enable/disable passive measurement based on the service criteria.
735 choices: ['disable', 'enable']
736 priority_zone:
737 aliases: ['priority-zone']
738 type: raw
739 description: (list or str) Priority zone name list.
740 agent_exclusive:
741 aliases: ['agent-exclusive']
742 type: str
743 description: Set/unset the service as agent use exclusively.
744 choices: ['disable', 'enable']
745 shortcut:
746 type: str
747 description: Enable/disable shortcut for this service.
748 choices: ['disable', 'enable']
749 shortcut_stickiness:
750 aliases: ['shortcut-stickiness']
751 type: str
752 description: Enable/disable shortcut-stickiness of ADVPN.
753 choices: ['disable', 'enable']
754 end_src_port:
755 aliases: ['end-src-port']
756 type: int
757 description: End source port number.
758 load_balance:
759 aliases: ['load-balance']
760 type: str
761 description: Enable/disable load-balance.
762 choices: ['disable', 'enable']
763 sla_stickiness:
764 aliases: ['sla-stickiness']
765 type: str
766 description: Enable/disable SLA stickiness
767 choices: ['disable', 'enable']
768 start_src_port:
769 aliases: ['start-src-port']
770 type: int
771 description: Start source port number.
772 zone_mode:
773 aliases: ['zone-mode']
774 type: str
775 description: Enable/disable zone mode.
776 choices: ['disable', 'enable']
777 shortcut_priority:
778 aliases: ['shortcut-priority']
779 type: str
780 description: High priority of ADVPN shortcut for this service.
781 choices: ['disable', 'enable', 'auto']
782 comment:
783 type: str
784 description: Comments.
785 fib_best_match_force:
786 aliases: ['fib-best-match-force']
787 type: str
788 description: Enable/disable force using fib-best-match oif as outgoing interface.
789 choices: ['disable', 'enable']
790 internet_service_fortiguard:
791 aliases: ['internet-service-fortiguard']
792 type: raw
793 description: (list) FortiGuard Internet service name list.
794 status:
795 type: str
796 description: Enable/disable SD-WAN.
797 choices: ['disable', 'enable']
798 zone:
799 type: list
800 elements: dict
801 description: Zone.
802 suboptions:
803 name:
804 type: str
805 description: Zone name.
806 service_sla_tie_break:
807 aliases: ['service-sla-tie-break']
808 type: str
809 description: Method of selecting member if more than one meets the SLA.
810 choices: ['cfg-order', 'fib-best-match', 'input-device', 'priority']
811 minimum_sla_meet_members:
812 aliases: ['minimum-sla-meet-members']
813 type: int
814 description: Minimum number of members which meet SLA when the neighbor is preferred.
815 advpn_health_check:
816 aliases: ['advpn-health-check']
817 type: str
818 description: Health check for ADVPN local overlay link quality.
819 advpn_select:
820 aliases: ['advpn-select']
821 type: str
822 description: Enable/disable selection of ADVPN based on SDWAN information.
823 choices: ['disable', 'enable']
824 speedtest_bypass_routing:
825 aliases: ['speedtest-bypass-routing']
826 type: str
827 description: Enable/disable bypass routing when speedtest on a SD-WAN member.
828 choices: ['disable', 'enable']
829 fail_alert_interfaces:
830 aliases: ['fail-alert-interfaces']
831 type: raw
832 description: (list) Physical interfaces that will be alerted.
833 app_perf_log_period:
834 aliases: ['app-perf-log-period']
835 type: int
836 description: Time interval in seconds that applicationperformance logs are generated
837 health_check_fortiguard:
838 aliases: ['health-check-fortiguard']
839 type: list
840 elements: dict
841 description: Health check fortiguard.
842 suboptions:
843 addr_mode:
844 aliases: ['addr-mode']
845 type: str
846 description: Address mode
847 choices: ['ipv4', 'ipv6']
848 class_id:
849 aliases: ['class-id']
850 type: raw
851 description: (list) Traffic class ID.
852 detect_mode:
853 aliases: ['detect-mode']
854 type: str
855 description: The mode determining how to detect the server.
856 choices: ['active', 'passive', 'prefer-passive', 'remote', 'agent-based']
857 diffservcode:
858 type: str
859 description: Differentiated services code point
860 dns_match_ip:
861 aliases: ['dns-match-ip']
862 type: str
863 description: Response IP expected from DNS server if the protocol is DNS.
864 dns_request_domain:
865 aliases: ['dns-request-domain']
866 type: str
867 description: Fully qualified domain name to resolve for the DNS probe.
868 embed_measured_health:
869 aliases: ['embed-measured-health']
870 type: str
871 description: Enable/disable embedding measured health information.
872 choices: ['disable', 'enable']
873 failtime:
874 type: int
875 description: Number of failures before server is considered lost
876 ftp_file:
877 aliases: ['ftp-file']
878 type: str
879 description: Full path and file name on the FTP server to download for FTP health-check to probe.
880 ftp_mode:
881 aliases: ['ftp-mode']
882 type: str
883 description: FTP mode.
884 choices: ['passive', 'port']
885 ha_priority:
886 aliases: ['ha-priority']
887 type: int
888 description: HA election priority
889 http_agent:
890 aliases: ['http-agent']
891 type: str
892 description: String in the http-agent field in the HTTP header.
893 http_get:
894 aliases: ['http-get']
895 type: str
896 description: URL used to communicate with the server if the protocol if the protocol is HTTP.
897 http_match:
898 aliases: ['http-match']
899 type: str
900 description: Response string expected from the server if the protocol is HTTP.
901 interval:
902 type: int
903 description: Status check interval in milliseconds, or the time between attempting to connect to the server
904 members:
905 type: raw
906 description: (list) Member sequence number list.
907 mos_codec:
908 aliases: ['mos-codec']
909 type: str
910 description: Codec to use for MOS calculation
911 choices: ['g711', 'g722', 'g729']
912 packet_size:
913 aliases: ['packet-size']
914 type: int
915 description: Packet size of a TWAMP test session.
916 password:
917 type: raw
918 description: (list) TWAMP controller password in authentication mode.
919 port:
920 type: int
921 description: Port number used to communicate with the server over the selected protocol
922 probe_count:
923 aliases: ['probe-count']
924 type: int
925 description: Number of most recent probes that should be used to calculate latency and jitter
926 probe_packets:
927 aliases: ['probe-packets']
928 type: str
929 description: Enable/disable transmission of probe packets.
930 choices: ['disable', 'enable']
931 probe_timeout:
932 aliases: ['probe-timeout']
933 type: int
934 description: Time to wait before a probe packet is considered lost
935 protocol:
936 type: str
937 description: Protocol used to determine if the FortiGate can communicate with the server.
938 choices: ['ping', 'tcp-echo', 'udp-echo', 'http', 'twamp', 'dns',
939 'tcp-connect', 'ftp', 'https']
940 quality_measured_method:
941 aliases: ['quality-measured-method']
942 type: str
943 description: Method to measure the quality of tcp-connect.
944 choices: ['half-close', 'half-open']
945 recoverytime:
946 type: int
947 description: Number of successful responses received before server is considered recovered
948 security_mode:
949 aliases: ['security-mode']
950 type: str
951 description: Twamp controller security mode.
952 choices: ['none', 'authentication']
953 server:
954 type: raw
955 description: (list) Predefined IP address or FQDN name from FortiGuard.
956 sla:
957 type: list
958 elements: dict
959 description: Sla.
960 suboptions:
961 id:
962 type: int
963 description: SLA ID.
964 jitter_threshold:
965 aliases: ['jitter-threshold']
966 type: int
967 description: Jitter for SLA to make decision in milliseconds.
968 latency_threshold:
969 aliases: ['latency-threshold']
970 type: int
971 description: Latency for SLA to make decision in milliseconds.
972 link_cost_factor:
973 aliases: ['link-cost-factor']
974 type: list
975 elements: str
976 description: Criteria on which to base link selection.
977 choices: ['latency', 'jitter', 'packet-loss', 'mos', 'remote']
978 mos_threshold:
979 aliases: ['mos-threshold']
980 type: str
981 description: Minimum Mean Opinion Score for SLA to be marked as pass.
982 packetloss_threshold:
983 aliases: ['packetloss-threshold']
984 type: int
985 description: Packet loss for SLA to make decision in percentage.
986 priority_in_sla:
987 aliases: ['priority-in-sla']
988 type: int
989 description: Value to be distributed into routing table when in-sla
990 priority_out_sla:
991 aliases: ['priority-out-sla']
992 type: int
993 description: Value to be distributed into routing table when out-sla
994 sla_fail_log_period:
995 aliases: ['sla-fail-log-period']
996 type: int
997 description: Time interval in seconds that SLA fail log messages will be generated
998 sla_id_redistribute:
999 aliases: ['sla-id-redistribute']
1000 type: int
1001 description: Select the ID from the SLA sub-table.
1002 sla_pass_log_period:
1003 aliases: ['sla-pass-log-period']
1004 type: int
1005 description: Time interval in seconds that SLA pass log messages will be generated
1006 source:
1007 type: str
1008 description: Source IP address used in the health-check packet to the server.
1009 source6:
1010 type: str
1011 description: Source IPv6 address used in the health-check packet to server.
1012 system_dns:
1013 aliases: ['system-dns']
1014 type: str
1015 description: Enable/disable system DNS as the probe server.
1016 choices: ['disable', 'enable']
1017 target_name:
1018 aliases: ['target-name']
1019 type: str
1020 description: Status check or predefined health-check targets name.
1021 threshold_alert_jitter:
1022 aliases: ['threshold-alert-jitter']
1023 type: int
1024 description: Alert threshold for jitter
1025 threshold_alert_latency:
1026 aliases: ['threshold-alert-latency']
1027 type: int
1028 description: Alert threshold for latency
1029 threshold_alert_packetloss:
1030 aliases: ['threshold-alert-packetloss']
1031 type: int
1032 description: Alert threshold for packet loss
1033 threshold_warning_jitter:
1034 aliases: ['threshold-warning-jitter']
1035 type: int
1036 description: Warning threshold for jitter
1037 threshold_warning_latency:
1038 aliases: ['threshold-warning-latency']
1039 type: int
1040 description: Warning threshold for latency
1041 threshold_warning_packetloss:
1042 aliases: ['threshold-warning-packetloss']
1043 type: int
1044 description: Warning threshold for packet loss
1045 update_cascade_interface:
1046 aliases: ['update-cascade-interface']
1047 type: str
1048 description: Enable/disable update cascade interface.
1049 choices: ['disable', 'enable']
1050 update_static_route:
1051 aliases: ['update-static-route']
1052 type: str
1053 description: Enable/disable updating the static route.
1054 choices: ['disable', 'enable']
1055 user:
1056 type: str
1057 description: The user name to access probe server.
1058 vrf:
1059 type: int
1060 description: Virtual Routing Forwarding ID.
1061 option:
1062 type: list
1063 elements: str
1064 description: Option.
1065 choices: ['sdwan-overlay', 'sdwan-manager']
1066 duplication_max_discrepancy:
1067 aliases: ['duplication-max-discrepancy']
1068 type: int
1069 description: Maximum discrepancy between two packets for deduplication in milliseconds
1070 '''
1071
1072 EXAMPLES = '''
1073 - name: Example playbook (generated based on argument schema)
1074 hosts: fortimanagers
1075 connection: httpapi
1076 gather_facts: false
1077 tasks:
1078 - name: Configure redundant internet connections using SD-WAN
1079 fortinet.fortimanager.fmgr_wanprof_system_sdwan:
1080 # workspace_locking_adom: <global or your adom name>
1081 adom: <your own value>
1082 wanprof: <your own value>
1083 wanprof_system_sdwan:
1084 # duplication:
1085 # - dstaddr: <list or string>
1086 # dstaddr6: <list or string>
1087 # dstintf: <list or string>
1088 # id: <integer>
1089 # packet_de_duplication: <value in [disable, enable]>
1090 # packet_duplication: <value in [disable, force, on-demand]>
1091 # service: <list or string>
1092 # srcaddr: <list or string>
1093 # srcaddr6: <list or string>
1094 # srcintf: <list or string>
1095 # service_id: <list or string>
1096 # sla_match_service: <value in [disable, enable]>
1097 # duplication_max_num: <integer>
1098 # fail_detect: <value in [disable, enable]>
1099 # health_check:
1100 # - _dynamic_server: <string>
1101 # addr_mode: <value in [ipv4, ipv6]>
1102 # diffservcode: <string>
1103 # dns_match_ip: <string>
1104 # dns_request_domain: <string>
1105 # failtime: <integer>
1106 # ftp_file: <string>
1107 # ftp_mode: <value in [passive, port]>
1108 # ha_priority: <integer>
1109 # http_agent: <string>
1110 # http_get: <string>
1111 # http_match: <string>
1112 # interval: <integer>
1113 # members: <list or string>
1114 # name: <string>
1115 # packet_size: <integer>
1116 # password: <list or string>
1117 # port: <integer>
1118 # probe_count: <integer>
1119 # probe_packets: <value in [disable, enable]>
1120 # probe_timeout: <integer>
1121 # protocol: <value in [ping, tcp-echo, udp-echo, ...]>
1122 # quality_measured_method: <value in [half-close, half-open]>
1123 # recoverytime: <integer>
1124 # security_mode: <value in [none, authentication]>
1125 # server: <list or string>
1126 # sla:
1127 # - id: <integer>
1128 # jitter_threshold: <integer>
1129 # latency_threshold: <integer>
1130 # link_cost_factor: ["latency", "jitter", "packet-loss", "mos", "remote",
1131 # "custom-profile-1"]
1132 # packetloss_threshold: <integer>
1133 # mos_threshold: <string>
1134 # priority_in_sla: <integer>
1135 # priority_out_sla: <integer>
1136 # custom_profile_threshold: <integer>
1137 # sla_fail_log_period: <integer>
1138 # sla_pass_log_period: <integer>
1139 # system_dns: <value in [disable, enable]>
1140 # threshold_alert_jitter: <integer>
1141 # threshold_alert_latency: <integer>
1142 # threshold_alert_packetloss: <integer>
1143 # threshold_warning_jitter: <integer>
1144 # threshold_warning_latency: <integer>
1145 # threshold_warning_packetloss: <integer>
1146 # update_cascade_interface: <value in [disable, enable]>
1147 # update_static_route: <value in [disable, enable]>
1148 # user: <string>
1149 # detect_mode: <value in [active, passive, prefer-passive, ...]>
1150 # mos_codec: <value in [g711, g722, g729]>
1151 # source: <string>
1152 # vrf: <integer>
1153 # embed_measured_health: <value in [disable, enable]>
1154 # sla_id_redistribute: <integer>
1155 # class_id: <string>
1156 # source6: <string>
1157 # fortiguard: <value in [disable, enable]>
1158 # fortiguard_name: <list or string>
1159 # agent_probe_timeout: <integer>
1160 # remote_probe_timeout: <integer>
1161 # bandwidth_weight: <integer>
1162 # jitter_weight: <integer>
1163 # latency_weight: <integer>
1164 # packet_loss_weight: <integer>
1165 # update_bgp_route: <value in [disable, enable]>
1166 # load_balance_mode: <value in [source-ip-based, weight-based, usage-based, ...]>
1167 # members:
1168 # - _dynamic_member: <string>
1169 # comment: <string>
1170 # cost: <integer>
1171 # gateway: <string>
1172 # gateway6: <string>
1173 # ingress_spillover_threshold: <integer>
1174 # interface: <string>
1175 # priority: <integer>
1176 # seq_num: <integer>
1177 # source: <string>
1178 # source6: <string>
1179 # spillover_threshold: <integer>
1180 # status: <value in [disable, enable]>
1181 # volume_ratio: <integer>
1182 # weight: <integer>
1183 # zone: <string>
1184 # priority6: <integer>
1185 # preferred_source: <string>
1186 # transport_group: <integer>
1187 # priority_in_sla: <integer>
1188 # priority_out_sla: <integer>
1189 # neighbor:
1190 # - health_check: <string>
1191 # ip: <string>
1192 # member: <list or string>
1193 # role: <value in [primary, secondary, standalone]>
1194 # sla_id: <integer>
1195 # minimum_sla_meet_members: <integer>
1196 # mode: <value in [sla, speedtest]>
1197 # service_id: <string>
1198 # route_metric: <value in [preferable, priority]>
1199 # neighbor_hold_boot_time: <integer>
1200 # neighbor_hold_down: <value in [disable, enable]>
1201 # neighbor_hold_down_time: <integer>
1202 # service:
1203 # - addr_mode: <value in [ipv4, ipv6]>
1204 # bandwidth_weight: <integer>
1205 # default: <value in [disable, enable]>
1206 # dscp_forward: <value in [disable, enable]>
1207 # dscp_forward_tag: <string>
1208 # dscp_reverse: <value in [disable, enable]>
1209 # dscp_reverse_tag: <string>
1210 # dst: <list or string>
1211 # dst_negate: <value in [disable, enable]>
1212 # dst6: <list or string>
1213 # end_port: <integer>
1214 # gateway: <value in [disable, enable]>
1215 # groups: <list or string>
1216 # hash_mode: <value in [round-robin, source-ip-based, source-dest-ip-based, ...]>
1217 # health_check: <list or string>
1218 # hold_down_time: <integer>
1219 # id: <integer>
1220 # input_device: <list or string>
1221 # input_device_negate: <value in [disable, enable]>
1222 # internet_service: <value in [disable, enable]>
1223 # internet_service_app_ctrl: <list or integer>
1224 # internet_service_app_ctrl_group: <list or string>
1225 # internet_service_custom: <list or string>
1226 # internet_service_custom_group: <list or string>
1227 # internet_service_group: <list or string>
1228 # internet_service_name: <list or string>
1229 # jitter_weight: <integer>
1230 # latency_weight: <integer>
1231 # link_cost_factor: <value in [latency, jitter, packet-loss, ...]>
1232 # link_cost_threshold: <integer>
1233 # minimum_sla_meet_members: <integer>
1234 # mode: <value in [auto, manual, priority, ...]>
1235 # name: <string>
1236 # packet_loss_weight: <integer>
1237 # priority_members: <list or string>
1238 # protocol: <integer>
1239 # quality_link: <integer>
1240 # role: <value in [primary, secondary, standalone]>
1241 # route_tag: <integer>
1242 # sla:
1243 # - health_check: <string>
1244 # id: <integer>
1245 # sla_compare_method: <value in [order, number]>
1246 # src: <list or string>
1247 # src_negate: <value in [disable, enable]>
1248 # src6: <list or string>
1249 # standalone_action: <value in [disable, enable]>
1250 # start_port: <integer>
1251 # status: <value in [disable, enable]>
1252 # tos: <string>
1253 # tos_mask: <string>
1254 # users: <list or string>
1255 # tie_break: <value in [zone, cfg-order, fib-best-match, ...]>
1256 # use_shortcut_sla: <value in [disable, enable]>
1257 # input_zone: <list or string>
1258 # internet_service_app_ctrl_category: <list or integer>
1259 # passive_measurement: <value in [disable, enable]>
1260 # priority_zone: <list or string>
1261 # agent_exclusive: <value in [disable, enable]>
1262 # shortcut: <value in [disable, enable]>
1263 # shortcut_stickiness: <value in [disable, enable]>
1264 # end_src_port: <integer>
1265 # load_balance: <value in [disable, enable]>
1266 # sla_stickiness: <value in [disable, enable]>
1267 # start_src_port: <integer>
1268 # zone_mode: <value in [disable, enable]>
1269 # shortcut_priority: <value in [disable, enable, auto]>
1270 # comment: <string>
1271 # fib_best_match_force: <value in [disable, enable]>
1272 # internet_service_fortiguard: <list or string>
1273 # status: <value in [disable, enable]>
1274 # zone:
1275 # - name: <string>
1276 # service_sla_tie_break: <value in [cfg-order, fib-best-match, input-device, ...]>
1277 # minimum_sla_meet_members: <integer>
1278 # advpn_health_check: <string>
1279 # advpn_select: <value in [disable, enable]>
1280 # speedtest_bypass_routing: <value in [disable, enable]>
1281 # fail_alert_interfaces: <list or string>
1282 # app_perf_log_period: <integer>
1283 # health_check_fortiguard:
1284 # - addr_mode: <value in [ipv4, ipv6]>
1285 # class_id: <list or string>
1286 # detect_mode: <value in [active, passive, prefer-passive, ...]>
1287 # diffservcode: <string>
1288 # dns_match_ip: <string>
1289 # dns_request_domain: <string>
1290 # embed_measured_health: <value in [disable, enable]>
1291 # failtime: <integer>
1292 # ftp_file: <string>
1293 # ftp_mode: <value in [passive, port]>
1294 # ha_priority: <integer>
1295 # http_agent: <string>
1296 # http_get: <string>
1297 # http_match: <string>
1298 # interval: <integer>
1299 # members: <list or string>
1300 # mos_codec: <value in [g711, g722, g729]>
1301 # packet_size: <integer>
1302 # password: <list or string>
1303 # port: <integer>
1304 # probe_count: <integer>
1305 # probe_packets: <value in [disable, enable]>
1306 # probe_timeout: <integer>
1307 # protocol: <value in [ping, tcp-echo, udp-echo, ...]>
1308 # quality_measured_method: <value in [half-close, half-open]>
1309 # recoverytime: <integer>
1310 # security_mode: <value in [none, authentication]>
1311 # server: <list or string>
1312 # sla:
1313 # - id: <integer>
1314 # jitter_threshold: <integer>
1315 # latency_threshold: <integer>
1316 # link_cost_factor: ["latency", "jitter", "packet-loss", "mos", "remote"]
1317 # mos_threshold: <string>
1318 # packetloss_threshold: <integer>
1319 # priority_in_sla: <integer>
1320 # priority_out_sla: <integer>
1321 # sla_fail_log_period: <integer>
1322 # sla_id_redistribute: <integer>
1323 # sla_pass_log_period: <integer>
1324 # source: <string>
1325 # source6: <string>
1326 # system_dns: <value in [disable, enable]>
1327 # target_name: <string>
1328 # threshold_alert_jitter: <integer>
1329 # threshold_alert_latency: <integer>
1330 # threshold_alert_packetloss: <integer>
1331 # threshold_warning_jitter: <integer>
1332 # threshold_warning_latency: <integer>
1333 # threshold_warning_packetloss: <integer>
1334 # update_cascade_interface: <value in [disable, enable]>
1335 # update_static_route: <value in [disable, enable]>
1336 # user: <string>
1337 # vrf: <integer>
1338 # option: ["sdwan-overlay", "sdwan-manager"]
1339 # duplication_max_discrepancy: <integer>
1340 '''
1341
1342 RETURN = '''
1343 meta:
1344 description: The result of the request.
1345 type: dict
1346 returned: always
1347 contains:
1348 request_url:
1349 description: The full url requested.
1350 returned: always
1351 type: str
1352 sample: /sys/login/user
1353 response_code:
1354 description: The status of api request.
1355 returned: always
1356 type: int
1357 sample: 0
1358 response_data:
1359 description: The api response.
1360 type: list
1361 returned: always
1362 response_message:
1363 description: The descriptive message of the api response.
1364 type: str
1365 returned: always
1366 sample: OK.
1367 system_information:
1368 description: The information of the target system.
1369 type: dict
1370 returned: always
1371 rc:
1372 description: The status the request.
1373 type: int
1374 returned: always
1375 sample: 0
1376 version_check_warning:
1377 description: Warning if the parameters used in the playbook are not supported by the current FortiManager version.
1378 type: list
1379 returned: complex
1380 '''
1381 from ansible.module_utils.basic import AnsibleModule
1382 from ansible.module_utils.connection import Connection
1383 from ansible_collections.fortinet.fortimanager.plugins.module_utils.napi import NAPIManager, check_galaxy_version, check_parameter_bypass
1384 from ansible_collections.fortinet.fortimanager.plugins.module_utils.common import get_module_arg_spec
1385
1386
1387 def main():
1388 urls_list = [
1389 '/pm/config/adom/{adom}/wanprof/{wanprof}/system/sdwan'
1390 ]
1391 module_arg_spec = {
1392 'adom': {'required': True, 'type': 'str'},
1393 'wanprof': {'required': True, 'type': 'str'},
1394 'wanprof_system_sdwan': {
1395 'type': 'dict', 'v_range': [['6.4.1', '']],
1396 'options': {
1397 'duplication': {
1398 'v_range': [['6.4.2', '']],
1399 'type': 'list',
1400 'options': {
1401 'dstaddr': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1402 'dstaddr6': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1403 'dstintf': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1404 'id': {'v_range': [['6.4.2', '']], 'type': 'int'},
1405 'packet-de-duplication': {'v_range': [['6.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1406 'packet-duplication': {'v_range': [['6.4.2', '']], 'choices': ['disable', 'force', 'on-demand'], 'type': 'str'},
1407 'service': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1408 'srcaddr': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1409 'srcaddr6': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1410 'srcintf': {'v_range': [['6.4.2', '']], 'type': 'raw'},
1411 'service-id': {'v_range': [['6.4.3', '']], 'type': 'raw'},
1412 'sla-match-service': {'v_range': [['7.2.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1413 },
1414 'elements': 'dict'
1415 },
1416 'duplication-max-num': {'v_range': [['6.4.2', '']], 'type': 'int'},
1417 'fail-detect': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1418 'health-check': {
1419 'v_range': [['6.4.1', '']],
1420 'type': 'list',
1421 'options': {
1422 '_dynamic-server': {'v_range': [['6.4.1', '6.4.15']], 'type': 'str'},
1423 'addr-mode': {'v_range': [['6.4.1', '']], 'choices': ['ipv4', 'ipv6'], 'type': 'str'},
1424 'diffservcode': {'v_range': [['6.4.1', '']], 'type': 'str'},
1425 'dns-match-ip': {'v_range': [['6.4.2', '']], 'type': 'str'},
1426 'dns-request-domain': {'v_range': [['6.4.1', '']], 'type': 'str'},
1427 'failtime': {'v_range': [['6.4.1', '']], 'type': 'int'},
1428 'ftp-file': {'v_range': [['6.4.2', '']], 'type': 'str'},
1429 'ftp-mode': {'v_range': [['6.4.2', '']], 'choices': ['passive', 'port'], 'type': 'str'},
1430 'ha-priority': {'v_range': [['6.4.1', '']], 'type': 'int'},
1431 'http-agent': {'v_range': [['6.4.1', '']], 'type': 'str'},
1432 'http-get': {'v_range': [['6.4.1', '']], 'type': 'str'},
1433 'http-match': {'v_range': [['6.4.1', '']], 'type': 'str'},
1434 'interval': {'v_range': [['6.4.1', '']], 'type': 'int'},
1435 'members': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1436 'name': {'v_range': [['6.4.1', '']], 'type': 'str'},
1437 'packet-size': {'v_range': [['6.4.1', '']], 'type': 'int'},
1438 'password': {'v_range': [['6.4.1', '']], 'no_log': True, 'type': 'raw'},
1439 'port': {'v_range': [['6.4.1', '']], 'type': 'int'},
1440 'probe-count': {'v_range': [['6.4.1', '']], 'type': 'int'},
1441 'probe-packets': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1442 'probe-timeout': {'v_range': [['6.4.1', '']], 'type': 'int'},
1443 'protocol': {
1444 'v_range': [['6.4.1', '']],
1445 'choices': ['ping', 'tcp-echo', 'udp-echo', 'http', 'twamp', 'ping6', 'dns', 'tcp-connect', 'ftp', 'https'],
1446 'type': 'str'
1447 },
1448 'quality-measured-method': {'v_range': [['6.4.2', '']], 'choices': ['half-close', 'half-open'], 'type': 'str'},
1449 'recoverytime': {'v_range': [['6.4.1', '']], 'type': 'int'},
1450 'security-mode': {'v_range': [['6.4.1', '']], 'choices': ['none', 'authentication'], 'type': 'str'},
1451 'server': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1452 'sla': {
1453 'v_range': [['6.4.1', '']],
1454 'type': 'list',
1455 'options': {
1456 'id': {'v_range': [['6.4.1', '']], 'type': 'int'},
1457 'jitter-threshold': {'v_range': [['6.4.1', '']], 'type': 'int'},
1458 'latency-threshold': {'v_range': [['6.4.1', '']], 'type': 'int'},
1459 'link-cost-factor': {
1460 'v_range': [['6.4.1', '']],
1461 'type': 'list',
1462 'choices': ['latency', 'jitter', 'packet-loss', 'mos', 'remote', 'custom-profile-1'],
1463 'elements': 'str'
1464 },
1465 'packetloss-threshold': {'v_range': [['6.4.1', '']], 'type': 'int'},
1466 'mos-threshold': {'v_range': [['7.2.0', '']], 'type': 'str'},
1467 'priority-in-sla': {'v_range': [['7.2.1', '']], 'type': 'int'},
1468 'priority-out-sla': {'v_range': [['7.2.1', '']], 'type': 'int'},
1469 'custom-profile-threshold': {'v_range': [['7.6.4', '']], 'type': 'int'}
1470 },
1471 'elements': 'dict'
1472 },
1473 'sla-fail-log-period': {'v_range': [['6.4.1', '']], 'type': 'int'},
1474 'sla-pass-log-period': {'v_range': [['6.4.1', '']], 'no_log': True, 'type': 'int'},
1475 'system-dns': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1476 'threshold-alert-jitter': {'v_range': [['6.4.1', '']], 'type': 'int'},
1477 'threshold-alert-latency': {'v_range': [['6.4.1', '']], 'type': 'int'},
1478 'threshold-alert-packetloss': {'v_range': [['6.4.1', '']], 'type': 'int'},
1479 'threshold-warning-jitter': {'v_range': [['6.4.1', '']], 'type': 'int'},
1480 'threshold-warning-latency': {'v_range': [['6.4.1', '']], 'type': 'int'},
1481 'threshold-warning-packetloss': {'v_range': [['6.4.1', '']], 'type': 'int'},
1482 'update-cascade-interface': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1483 'update-static-route': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1484 'user': {'v_range': [['6.4.2', '']], 'type': 'str'},
1485 'detect-mode': {
1486 'v_range': [['7.0.0', '']],
1487 'choices': ['active', 'passive', 'prefer-passive', 'remote', 'agent-based'],
1488 'type': 'str'
1489 },
1490 'mos-codec': {'v_range': [['7.2.0', '']], 'choices': ['g711', 'g722', 'g729'], 'type': 'str'},
1491 'source': {'v_range': [['7.2.0', '']], 'type': 'str'},
1492 'vrf': {'v_range': [['7.2.0', '']], 'type': 'int'},
1493 'embed-measured-health': {'v_range': [['7.2.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1494 'sla-id-redistribute': {'v_range': [['7.2.1', '']], 'type': 'int'},
1495 'class-id': {'v_range': [['7.4.0', '']], 'type': 'str'},
1496 'source6': {'v_range': [['7.4.0', '']], 'type': 'str'},
1497 'fortiguard': {'v_range': [['7.6.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1498 'fortiguard-name': {'v_range': [['7.6.2', '']], 'type': 'raw'},
1499 'agent-probe-timeout': {'v_range': [['7.6.3', '']], 'type': 'int'},
1500 'remote-probe-timeout': {'v_range': [['7.6.3', '']], 'type': 'int'},
1501 'bandwidth-weight': {'v_range': [['7.6.4', '']], 'type': 'int'},
1502 'jitter-weight': {'v_range': [['7.6.4', '']], 'type': 'int'},
1503 'latency-weight': {'v_range': [['7.6.4', '']], 'type': 'int'},
1504 'packet-loss-weight': {'v_range': [['7.6.4', '']], 'type': 'int'},
1505 'update-bgp-route': {'v_range': [['7.6.5', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1506 },
1507 'elements': 'dict'
1508 },
1509 'load-balance-mode': {
1510 'v_range': [['6.4.1', '']],
1511 'choices': ['source-ip-based', 'weight-based', 'usage-based', 'source-dest-ip-based', 'measured-volume-based'],
1512 'type': 'str'
1513 },
1514 'members': {
1515 'v_range': [['6.4.1', '']],
1516 'type': 'list',
1517 'options': {
1518 '_dynamic-member': {'v_range': [['6.4.1', '6.4.15']], 'type': 'str'},
1519 'comment': {'v_range': [['6.4.1', '']], 'type': 'str'},
1520 'cost': {'v_range': [['6.4.1', '']], 'type': 'int'},
1521 'gateway': {'v_range': [['6.4.1', '']], 'type': 'str'},
1522 'gateway6': {'v_range': [['6.4.1', '']], 'type': 'str'},
1523 'ingress-spillover-threshold': {'v_range': [['6.4.1', '']], 'type': 'int'},
1524 'interface': {'v_range': [['6.4.1', '']], 'type': 'str'},
1525 'priority': {'v_range': [['6.4.1', '']], 'type': 'int'},
1526 'seq-num': {'v_range': [['6.4.1', '']], 'type': 'int'},
1527 'source': {'v_range': [['6.4.1', '']], 'type': 'str'},
1528 'source6': {'v_range': [['6.4.1', '']], 'type': 'str'},
1529 'spillover-threshold': {'v_range': [['6.4.1', '']], 'type': 'int'},
1530 'status': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1531 'volume-ratio': {'v_range': [['6.4.1', '']], 'type': 'int'},
1532 'weight': {'v_range': [['6.4.1', '']], 'type': 'int'},
1533 'zone': {'v_range': [['6.4.1', '']], 'type': 'str'},
1534 'priority6': {'v_range': [['7.0.0', '']], 'type': 'int'},
1535 'preferred-source': {'v_range': [['7.4.0', '']], 'type': 'str'},
1536 'transport-group': {'v_range': [['7.4.2', '']], 'type': 'int'},
1537 'priority-in-sla': {'v_range': [['7.6.0', '']], 'type': 'int'},
1538 'priority-out-sla': {'v_range': [['7.6.0', '']], 'type': 'int'}
1539 },
1540 'elements': 'dict'
1541 },
1542 'neighbor': {
1543 'v_range': [['6.4.1', '']],
1544 'type': 'list',
1545 'options': {
1546 'health-check': {'v_range': [['6.4.1', '']], 'type': 'str'},
1547 'ip': {'v_range': [['6.4.1', '']], 'type': 'str'},
1548 'member': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1549 'role': {'v_range': [['6.4.1', '']], 'choices': ['primary', 'secondary', 'standalone'], 'type': 'str'},
1550 'sla-id': {'v_range': [['6.4.1', '']], 'type': 'int'},
1551 'minimum-sla-meet-members': {'v_range': [['7.2.0', '']], 'type': 'int'},
1552 'mode': {'v_range': [['7.0.1', '']], 'choices': ['sla', 'speedtest'], 'type': 'str'},
1553 'service-id': {'v_range': [['7.4.1', '']], 'type': 'str'},
1554 'route-metric': {'v_range': [['7.6.2', '']], 'choices': ['preferable', 'priority'], 'type': 'str'}
1555 },
1556 'elements': 'dict'
1557 },
1558 'neighbor-hold-boot-time': {'v_range': [['6.4.1', '']], 'type': 'int'},
1559 'neighbor-hold-down': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1560 'neighbor-hold-down-time': {'v_range': [['6.4.1', '']], 'type': 'int'},
1561 'service': {
1562 'v_range': [['6.4.1', '']],
1563 'type': 'list',
1564 'options': {
1565 'addr-mode': {'v_range': [['6.4.1', '']], 'choices': ['ipv4', 'ipv6'], 'type': 'str'},
1566 'bandwidth-weight': {'v_range': [['6.4.1', '']], 'type': 'int'},
1567 'default': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1568 'dscp-forward': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1569 'dscp-forward-tag': {'v_range': [['6.4.1', '']], 'type': 'str'},
1570 'dscp-reverse': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1571 'dscp-reverse-tag': {'v_range': [['6.4.1', '']], 'type': 'str'},
1572 'dst': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1573 'dst-negate': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1574 'dst6': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1575 'end-port': {'v_range': [['6.4.1', '']], 'type': 'int'},
1576 'gateway': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1577 'groups': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1578 'hash-mode': {
1579 'v_range': [['6.4.2', '']],
1580 'choices': ['round-robin', 'source-ip-based', 'source-dest-ip-based', 'inbandwidth', 'outbandwidth', 'bibandwidth'],
1581 'type': 'str'
1582 },
1583 'health-check': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1584 'hold-down-time': {'v_range': [['6.4.1', '']], 'type': 'int'},
1585 'id': {'v_range': [['6.4.1', '']], 'type': 'int'},
1586 'input-device': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1587 'input-device-negate': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1588 'internet-service': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1589 'internet-service-app-ctrl': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1590 'internet-service-app-ctrl-group': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1591 'internet-service-custom': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1592 'internet-service-custom-group': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1593 'internet-service-group': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1594 'internet-service-name': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1595 'jitter-weight': {'v_range': [['6.4.1', '']], 'type': 'int'},
1596 'latency-weight': {'v_range': [['6.4.1', '']], 'type': 'int'},
1597 'link-cost-factor': {
1598 'v_range': [['6.4.1', '']],
1599 'choices': ['latency', 'jitter', 'packet-loss', 'inbandwidth', 'outbandwidth', 'bibandwidth', 'custom-profile-1'],
1600 'type': 'str'
1601 },
1602 'link-cost-threshold': {'v_range': [['6.4.1', '']], 'type': 'int'},
1603 'minimum-sla-meet-members': {'v_range': [['6.4.2', '']], 'type': 'int'},
1604 'mode': {'v_range': [['6.4.1', '']], 'choices': ['auto', 'manual', 'priority', 'sla', 'load-balance'], 'type': 'str'},
1605 'name': {'v_range': [['6.4.1', '']], 'type': 'str'},
1606 'packet-loss-weight': {'v_range': [['6.4.1', '']], 'type': 'int'},
1607 'priority-members': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1608 'protocol': {'v_range': [['6.4.1', '']], 'type': 'int'},
1609 'quality-link': {'v_range': [['6.4.1', '']], 'type': 'int'},
1610 'role': {'v_range': [['6.4.1', '']], 'choices': ['primary', 'secondary', 'standalone'], 'type': 'str'},
1611 'route-tag': {'v_range': [['6.4.1', '']], 'type': 'int'},
1612 'sla': {
1613 'v_range': [['6.4.1', '']],
1614 'type': 'list',
1615 'options': {'health-check': {'v_range': [['6.4.1', '']], 'type': 'str'}, 'id': {'v_range': [['6.4.1', '']], 'type': 'int'}},
1616 'elements': 'dict'
1617 },
1618 'sla-compare-method': {'v_range': [['6.4.1', '']], 'choices': ['order', 'number'], 'type': 'str'},
1619 'src': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1620 'src-negate': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1621 'src6': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1622 'standalone-action': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1623 'start-port': {'v_range': [['6.4.1', '']], 'type': 'int'},
1624 'status': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1625 'tos': {'v_range': [['6.4.1', '']], 'type': 'str'},
1626 'tos-mask': {'v_range': [['6.4.1', '']], 'type': 'str'},
1627 'users': {'v_range': [['6.4.1', '']], 'type': 'raw'},
1628 'tie-break': {
1629 'v_range': [['6.4.3', '']],
1630 'choices': ['zone', 'cfg-order', 'fib-best-match', 'input-device', 'priority'],
1631 'type': 'str'
1632 },
1633 'use-shortcut-sla': {'v_range': [['6.4.4', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1634 'input-zone': {'v_range': [['7.2.0', '']], 'type': 'raw'},
1635 'internet-service-app-ctrl-category': {'v_range': [['7.2.0', '']], 'type': 'raw'},
1636 'passive-measurement': {'v_range': [['7.0.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1637 'priority-zone': {'v_range': [['7.0.1', '']], 'type': 'raw'},
1638 'agent-exclusive': {'v_range': [['7.2.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1639 'shortcut': {'v_range': [['7.4.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1640 'shortcut-stickiness': {'v_range': [['7.4.0', '7.4.1']], 'choices': ['disable', 'enable'], 'type': 'str'},
1641 'end-src-port': {'v_range': [['7.4.1', '']], 'type': 'int'},
1642 'load-balance': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1643 'sla-stickiness': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1644 'start-src-port': {'v_range': [['7.4.1', '']], 'type': 'int'},
1645 'zone-mode': {'v_range': [['7.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1646 'shortcut-priority': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable', 'auto'], 'type': 'str'},
1647 'comment': {'v_range': [['7.6.0', '']], 'type': 'str'},
1648 'fib-best-match-force': {'v_range': [['7.4.9', '7.4.10'], ['7.6.3', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1649 'internet-service-fortiguard': {'v_range': [['7.6.4', '']], 'type': 'raw'}
1650 },
1651 'elements': 'dict'
1652 },
1653 'status': {'v_range': [['6.4.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1654 'zone': {
1655 'v_range': [['6.4.1', '']],
1656 'type': 'list',
1657 'options': {
1658 'name': {'v_range': [['6.4.1', '']], 'type': 'str'},
1659 'service-sla-tie-break': {
1660 'v_range': [['6.4.3', '']],
1661 'choices': ['cfg-order', 'fib-best-match', 'input-device', 'priority'],
1662 'type': 'str'
1663 },
1664 'minimum-sla-meet-members': {'v_range': [['7.4.1', '']], 'type': 'int'},
1665 'advpn-health-check': {'v_range': [['7.4.2', '']], 'type': 'str'},
1666 'advpn-select': {'v_range': [['7.4.2', '']], 'choices': ['disable', 'enable'], 'type': 'str'}
1667 },
1668 'elements': 'dict'
1669 },
1670 'speedtest-bypass-routing': {'v_range': [['7.0.1', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1671 'fail-alert-interfaces': {'v_range': [['7.2.3', '']], 'type': 'raw'},
1672 'app-perf-log-period': {'v_range': [['7.4.0', '']], 'type': 'int'},
1673 'health-check-fortiguard': {
1674 'v_range': [['7.6.0', '']],
1675 'type': 'list',
1676 'options': {
1677 'addr-mode': {'v_range': [['7.6.0', '']], 'choices': ['ipv4', 'ipv6'], 'type': 'str'},
1678 'class-id': {'v_range': [['7.6.0', '']], 'type': 'raw'},
1679 'detect-mode': {
1680 'v_range': [['7.6.0', '']],
1681 'choices': ['active', 'passive', 'prefer-passive', 'remote', 'agent-based'],
1682 'type': 'str'
1683 },
1684 'diffservcode': {'v_range': [['7.6.0', '']], 'type': 'str'},
1685 'dns-match-ip': {'v_range': [['7.6.0', '']], 'type': 'str'},
1686 'dns-request-domain': {'v_range': [['7.6.0', '']], 'type': 'str'},
1687 'embed-measured-health': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1688 'failtime': {'v_range': [['7.6.0', '']], 'type': 'int'},
1689 'ftp-file': {'v_range': [['7.6.0', '']], 'type': 'str'},
1690 'ftp-mode': {'v_range': [['7.6.0', '']], 'choices': ['passive', 'port'], 'type': 'str'},
1691 'ha-priority': {'v_range': [['7.6.0', '']], 'type': 'int'},
1692 'http-agent': {'v_range': [['7.6.0', '']], 'type': 'str'},
1693 'http-get': {'v_range': [['7.6.0', '']], 'type': 'str'},
1694 'http-match': {'v_range': [['7.6.0', '']], 'type': 'str'},
1695 'interval': {'v_range': [['7.6.0', '']], 'type': 'int'},
1696 'members': {'v_range': [['7.6.0', '']], 'type': 'raw'},
1697 'mos-codec': {'v_range': [['7.6.0', '']], 'choices': ['g711', 'g722', 'g729'], 'type': 'str'},
1698 'packet-size': {'v_range': [['7.6.0', '']], 'type': 'int'},
1699 'password': {'v_range': [['7.6.0', '']], 'no_log': True, 'type': 'raw'},
1700 'port': {'v_range': [['7.6.0', '']], 'type': 'int'},
1701 'probe-count': {'v_range': [['7.6.0', '']], 'type': 'int'},
1702 'probe-packets': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1703 'probe-timeout': {'v_range': [['7.6.0', '']], 'type': 'int'},
1704 'protocol': {
1705 'v_range': [['7.6.0', '']],
1706 'choices': ['ping', 'tcp-echo', 'udp-echo', 'http', 'twamp', 'dns', 'tcp-connect', 'ftp', 'https'],
1707 'type': 'str'
1708 },
1709 'quality-measured-method': {'v_range': [['7.6.0', '']], 'choices': ['half-close', 'half-open'], 'type': 'str'},
1710 'recoverytime': {'v_range': [['7.6.0', '']], 'type': 'int'},
1711 'security-mode': {'v_range': [['7.6.0', '']], 'choices': ['none', 'authentication'], 'type': 'str'},
1712 'server': {'v_range': [['7.6.0', '']], 'type': 'raw'},
1713 'sla': {
1714 'v_range': [['7.6.0', '']],
1715 'type': 'list',
1716 'options': {
1717 'id': {'v_range': [['7.6.0', '']], 'type': 'int'},
1718 'jitter-threshold': {'v_range': [['7.6.0', '']], 'type': 'int'},
1719 'latency-threshold': {'v_range': [['7.6.0', '']], 'type': 'int'},
1720 'link-cost-factor': {
1721 'v_range': [['7.6.0', '']],
1722 'type': 'list',
1723 'choices': ['latency', 'jitter', 'packet-loss', 'mos', 'remote'],
1724 'elements': 'str'
1725 },
1726 'mos-threshold': {'v_range': [['7.6.0', '']], 'type': 'str'},
1727 'packetloss-threshold': {'v_range': [['7.6.0', '']], 'type': 'int'},
1728 'priority-in-sla': {'v_range': [['7.6.0', '']], 'type': 'int'},
1729 'priority-out-sla': {'v_range': [['7.6.0', '']], 'type': 'int'}
1730 },
1731 'elements': 'dict'
1732 },
1733 'sla-fail-log-period': {'v_range': [['7.6.0', '']], 'type': 'int'},
1734 'sla-id-redistribute': {'v_range': [['7.6.0', '']], 'type': 'int'},
1735 'sla-pass-log-period': {'v_range': [['7.6.0', '']], 'no_log': True, 'type': 'int'},
1736 'source': {'v_range': [['7.6.0', '']], 'type': 'str'},
1737 'source6': {'v_range': [['7.6.0', '']], 'type': 'str'},
1738 'system-dns': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1739 'target-name': {'v_range': [['7.6.0', '']], 'type': 'str'},
1740 'threshold-alert-jitter': {'v_range': [['7.6.0', '']], 'type': 'int'},
1741 'threshold-alert-latency': {'v_range': [['7.6.0', '']], 'type': 'int'},
1742 'threshold-alert-packetloss': {'v_range': [['7.6.0', '']], 'type': 'int'},
1743 'threshold-warning-jitter': {'v_range': [['7.6.0', '']], 'type': 'int'},
1744 'threshold-warning-latency': {'v_range': [['7.6.0', '']], 'type': 'int'},
1745 'threshold-warning-packetloss': {'v_range': [['7.6.0', '']], 'type': 'int'},
1746 'update-cascade-interface': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1747 'update-static-route': {'v_range': [['7.6.0', '']], 'choices': ['disable', 'enable'], 'type': 'str'},
1748 'user': {'v_range': [['7.6.0', '']], 'type': 'str'},
1749 'vrf': {'v_range': [['7.6.0', '']], 'type': 'int'}
1750 },
1751 'elements': 'dict'
1752 },
1753 'option': {'v_range': [['7.6.0', '']], 'type': 'list', 'choices': ['sdwan-overlay', 'sdwan-manager'], 'elements': 'str'},
1754 'duplication-max-discrepancy': {'v_range': [['7.6.2', '']], 'type': 'int'}
1755 }
1756 }
1757 }
1758
1759 module_option_spec = get_module_arg_spec('partial crud')
1760 module_arg_spec.update(module_option_spec)
1761 check_galaxy_version(module_arg_spec)
1762 module = AnsibleModule(argument_spec=check_parameter_bypass(module_arg_spec, 'wanprof_system_sdwan'),
1763 supports_check_mode=True)
1764 if not module._socket_path:
1765 module.fail_json(msg='MUST RUN IN HTTPAPI MODE')
1766 connection = Connection(module._socket_path)
1767 fmgr = NAPIManager('partial crud', module_arg_spec, urls_list,
1768 None, 'data', module, connection)
1769 fmgr.process_partial_crud()
1770 module.exit_json(meta=module.params)
1771
1772
1773 if __name__ == '__main__':
1774 main()