Debian Codegraph @

ansible_collections/fortinet/fortios/plugins/modules/fortios_router_bgp.py

raw symbols SCIP
1 #!/usr/bin/python
2 from __future__ import absolute_import, division, print_function
3
4 # Copyright: (c) 2022 Fortinet
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 __metaclass__ = type
13
14 ANSIBLE_METADATA = {
15 "status": ["preview"],
16 "supported_by": "community",
17 "metadata_version": "1.1",
18 }
19
20 DOCUMENTATION = """
21 ---
22 module: fortios_router_bgp
23 short_description: Configure BGP in Fortinet's FortiOS and FortiGate.
24 description:
25 - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
26 user to set and modify router feature and bgp category.
27 Examples include all parameters and values need to be adjusted to datasources before usage.
28 Tested with FOS v6.0.0
29 version_added: "2.0.0"
30 author:
31 - Link Zheng (@chillancezen)
32 - Jie Xue (@JieX19)
33 - Hongbin Lu (@fgtdev-hblu)
34 - Frank Shen (@frankshen01)
35 - Miguel Angel Munoz (@mamunozgonzalez)
36 - Nicolas Thomas (@thomnico)
37 notes:
38 - Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
39
40 - The module supports check_mode.
41
42 requirements:
43 - ansible>=2.16
44 options:
45 access_token:
46 description:
47 - Token-based authentication.
48 Generated from GUI of Fortigate.
49 type: str
50 required: false
51 enable_log:
52 description:
53 - Enable/Disable logging for task.
54 type: bool
55 required: false
56 default: false
57 vdom:
58 description:
59 - Virtual domain, among those defined previously. A vdom is a
60 virtual instance of the FortiGate that can be configured and
61 used as a different unit.
62 type: str
63 default: root
64 member_path:
65 type: str
66 description:
67 - Member attribute path to operate on.
68 - Delimited by a slash character if there are more than one attribute.
69 - Parameter marked with member_path is legitimate for doing member operation.
70 member_state:
71 type: str
72 description:
73 - Add or delete a member under specified attribute path.
74 - When member_state is specified, the state option is ignored.
75 choices:
76 - 'present'
77 - 'absent'
78
79 router_bgp:
80 description:
81 - Configure BGP.
82 default: null
83 type: dict
84 suboptions:
85 additional_path:
86 description:
87 - Enable/disable selection of BGP IPv4 additional paths.
88 type: str
89 choices:
90 - 'enable'
91 - 'disable'
92 additional_path_select:
93 description:
94 - Number of additional paths to be selected for each IPv4 NLRI.
95 type: int
96 additional_path_select_vpnv4:
97 description:
98 - Number of additional paths to be selected for each VPNv4 NLRI.
99 type: int
100 additional_path_select_vpnv6:
101 description:
102 - Number of additional paths to be selected for each VPNv6 NLRI.
103 type: int
104 additional_path_select6:
105 description:
106 - Number of additional paths to be selected for each IPv6 NLRI.
107 type: int
108 additional_path_vpnv4:
109 description:
110 - Enable/disable selection of BGP VPNv4 additional paths.
111 type: str
112 choices:
113 - 'enable'
114 - 'disable'
115 additional_path_vpnv6:
116 description:
117 - Enable/disable selection of BGP VPNv6 additional paths.
118 type: str
119 choices:
120 - 'enable'
121 - 'disable'
122 additional_path6:
123 description:
124 - Enable/disable selection of BGP IPv6 additional paths.
125 type: str
126 choices:
127 - 'enable'
128 - 'disable'
129 admin_distance:
130 description:
131 - Administrative distance modifications.
132 type: list
133 elements: dict
134 suboptions:
135 distance:
136 description:
137 - Administrative distance to apply (1 - 255).
138 type: int
139 id:
140 description:
141 - ID. see <a href='#notes'>Notes</a>.
142 required: true
143 type: int
144 neighbour_prefix:
145 description:
146 - Neighbor address prefix.
147 type: str
148 route_list:
149 description:
150 - Access list of routes to apply new distance to. Source router.access-list.name.
151 type: str
152 aggregate_address:
153 description:
154 - BGP aggregate address table.
155 type: list
156 elements: dict
157 suboptions:
158 as_set:
159 description:
160 - Enable/disable generate AS set path information.
161 type: str
162 choices:
163 - 'enable'
164 - 'disable'
165 id:
166 description:
167 - ID. see <a href='#notes'>Notes</a>.
168 required: true
169 type: int
170 prefix:
171 description:
172 - Aggregate prefix.
173 type: str
174 summary_only:
175 description:
176 - Enable/disable filter more specific routes from updates.
177 type: str
178 choices:
179 - 'enable'
180 - 'disable'
181 aggregate_address6:
182 description:
183 - BGP IPv6 aggregate address table.
184 type: list
185 elements: dict
186 suboptions:
187 as_set:
188 description:
189 - Enable/disable generate AS set path information.
190 type: str
191 choices:
192 - 'enable'
193 - 'disable'
194 id:
195 description:
196 - ID. see <a href='#notes'>Notes</a>.
197 required: true
198 type: int
199 prefix6:
200 description:
201 - Aggregate IPv6 prefix.
202 type: str
203 summary_only:
204 description:
205 - Enable/disable filter more specific routes from updates.
206 type: str
207 choices:
208 - 'enable'
209 - 'disable'
210 always_compare_med:
211 description:
212 - Enable/disable always compare MED.
213 type: str
214 choices:
215 - 'enable'
216 - 'disable'
217 as:
218 description:
219 - Router AS number, asplain/asdot/asdot+ format, 0 to disable BGP.
220 type: str
221 bestpath_as_path_ignore:
222 description:
223 - Enable/disable ignore AS path.
224 type: str
225 choices:
226 - 'enable'
227 - 'disable'
228 bestpath_cmp_confed_aspath:
229 description:
230 - Enable/disable compare federation AS path length.
231 type: str
232 choices:
233 - 'enable'
234 - 'disable'
235 bestpath_cmp_routerid:
236 description:
237 - Enable/disable compare router ID for identical EBGP paths.
238 type: str
239 choices:
240 - 'enable'
241 - 'disable'
242 bestpath_med_confed:
243 description:
244 - Enable/disable compare MED among confederation paths.
245 type: str
246 choices:
247 - 'enable'
248 - 'disable'
249 bestpath_med_missing_as_worst:
250 description:
251 - Enable/disable treat missing MED as least preferred.
252 type: str
253 choices:
254 - 'enable'
255 - 'disable'
256 client_to_client_reflection:
257 description:
258 - Enable/disable client-to-client route reflection.
259 type: str
260 choices:
261 - 'enable'
262 - 'disable'
263 cluster_id:
264 description:
265 - Route reflector cluster ID.
266 type: str
267 confederation_identifier:
268 description:
269 - Confederation identifier.
270 type: int
271 confederation_peers:
272 description:
273 - Confederation peers.
274 type: list
275 elements: dict
276 suboptions:
277 peer:
278 description:
279 - Peer ID.
280 required: true
281 type: str
282 cross_family_conditional_adv:
283 description:
284 - Enable/disable cross address family conditional advertisement.
285 type: str
286 choices:
287 - 'enable'
288 - 'disable'
289 dampening:
290 description:
291 - Enable/disable route-flap dampening.
292 type: str
293 choices:
294 - 'enable'
295 - 'disable'
296 dampening_max_suppress_time:
297 description:
298 - Maximum minutes a route can be suppressed.
299 type: int
300 dampening_reachability_half_life:
301 description:
302 - Reachability half-life time for penalty (min).
303 type: int
304 dampening_reuse:
305 description:
306 - Threshold to reuse routes.
307 type: int
308 dampening_route_map:
309 description:
310 - Criteria for dampening. Source router.route-map.name.
311 type: str
312 dampening_suppress:
313 description:
314 - Threshold to suppress routes.
315 type: int
316 dampening_unreachability_half_life:
317 description:
318 - Unreachability half-life time for penalty (min).
319 type: int
320 default_local_preference:
321 description:
322 - Default local preference.
323 type: int
324 deterministic_med:
325 description:
326 - Enable/disable enforce deterministic comparison of MED.
327 type: str
328 choices:
329 - 'enable'
330 - 'disable'
331 distance_external:
332 description:
333 - Distance for routes external to the AS.
334 type: int
335 distance_internal:
336 description:
337 - Distance for routes internal to the AS.
338 type: int
339 distance_local:
340 description:
341 - Distance for routes local to the AS.
342 type: int
343 ebgp_multipath:
344 description:
345 - Enable/disable EBGP multi-path.
346 type: str
347 choices:
348 - 'enable'
349 - 'disable'
350 enforce_first_as:
351 description:
352 - Enable/disable enforce first AS for EBGP routes.
353 type: str
354 choices:
355 - 'enable'
356 - 'disable'
357 fast_external_failover:
358 description:
359 - Enable/disable reset peer BGP session if link goes down.
360 type: str
361 choices:
362 - 'enable'
363 - 'disable'
364 graceful_end_on_timer:
365 description:
366 - Enable/disable to exit graceful restart on timer only.
367 type: str
368 choices:
369 - 'enable'
370 - 'disable'
371 graceful_restart:
372 description:
373 - Enable/disable BGP graceful restart capabilities.
374 type: str
375 choices:
376 - 'enable'
377 - 'disable'
378 graceful_restart_time:
379 description:
380 - Time needed for neighbors to restart (sec).
381 type: int
382 graceful_stalepath_time:
383 description:
384 - Time to hold stale paths of restarting neighbor (sec).
385 type: int
386 graceful_update_delay:
387 description:
388 - Route advertisement/selection delay after restart (sec).
389 type: int
390 holdtime_timer:
391 description:
392 - Number of seconds to mark peer as dead.
393 type: int
394 ibgp_multipath:
395 description:
396 - Enable/disable IBGP multi-path.
397 type: str
398 choices:
399 - 'enable'
400 - 'disable'
401 ignore_optional_capability:
402 description:
403 - Do not send unknown optional capability notification message.
404 type: str
405 choices:
406 - 'enable'
407 - 'disable'
408 keepalive_timer:
409 description:
410 - Frequency to send keep alive requests.
411 type: int
412 log_neighbour_changes:
413 description:
414 - Log BGP neighbor changes.
415 type: str
416 choices:
417 - 'enable'
418 - 'disable'
419 multipath_recursive_distance:
420 description:
421 - Enable/disable use of recursive distance to select multipath.
422 type: str
423 choices:
424 - 'enable'
425 - 'disable'
426 neighbor:
427 description:
428 - BGP neighbor table.
429 type: list
430 elements: dict
431 suboptions:
432 activate:
433 description:
434 - Enable/disable address family IPv4 for this neighbor.
435 type: str
436 choices:
437 - 'enable'
438 - 'disable'
439 activate_evpn:
440 description:
441 - Enable/disable address family L2VPN EVPN for this neighbor.
442 type: str
443 choices:
444 - 'enable'
445 - 'disable'
446 activate_vpnv4:
447 description:
448 - Enable/disable address family VPNv4 for this neighbor.
449 type: str
450 choices:
451 - 'enable'
452 - 'disable'
453 activate_vpnv6:
454 description:
455 - Enable/disable address family VPNv6 for this neighbor.
456 type: str
457 choices:
458 - 'enable'
459 - 'disable'
460 activate6:
461 description:
462 - Enable/disable address family IPv6 for this neighbor.
463 type: str
464 choices:
465 - 'enable'
466 - 'disable'
467 additional_path:
468 description:
469 - Enable/disable IPv4 additional-path capability.
470 type: str
471 choices:
472 - 'send'
473 - 'receive'
474 - 'both'
475 - 'disable'
476 additional_path_vpnv4:
477 description:
478 - Enable/disable VPNv4 additional-path capability.
479 type: str
480 choices:
481 - 'send'
482 - 'receive'
483 - 'both'
484 - 'disable'
485 additional_path_vpnv6:
486 description:
487 - Enable/disable VPNv6 additional-path capability.
488 type: str
489 choices:
490 - 'send'
491 - 'receive'
492 - 'both'
493 - 'disable'
494 additional_path6:
495 description:
496 - Enable/disable IPv6 additional-path capability.
497 type: str
498 choices:
499 - 'send'
500 - 'receive'
501 - 'both'
502 - 'disable'
503 adv_additional_path:
504 description:
505 - Number of IPv4 additional paths that can be advertised to this neighbor.
506 type: int
507 adv_additional_path_vpnv4:
508 description:
509 - Number of VPNv4 additional paths that can be advertised to this neighbor.
510 type: int
511 adv_additional_path_vpnv6:
512 description:
513 - Number of VPNv6 additional paths that can be advertised to this neighbor.
514 type: int
515 adv_additional_path6:
516 description:
517 - Number of IPv6 additional paths that can be advertised to this neighbor.
518 type: int
519 advertisement_interval:
520 description:
521 - Minimum interval (sec) between sending updates.
522 type: int
523 allowas_in:
524 description:
525 - IPv4 The maximum number of occurrence of my AS number allowed.
526 type: int
527 allowas_in_enable:
528 description:
529 - Enable/disable IPv4 Enable to allow my AS in AS path.
530 type: str
531 choices:
532 - 'enable'
533 - 'disable'
534 allowas_in_enable_evpn:
535 description:
536 - Enable/disable to allow my AS in AS path for L2VPN EVPN route.
537 type: str
538 choices:
539 - 'enable'
540 - 'disable'
541 allowas_in_enable_vpnv4:
542 description:
543 - Enable/disable to allow my AS in AS path for VPNv4 route.
544 type: str
545 choices:
546 - 'enable'
547 - 'disable'
548 allowas_in_enable_vpnv6:
549 description:
550 - Enable/disable use of my AS in AS path for VPNv6 route.
551 type: str
552 choices:
553 - 'enable'
554 - 'disable'
555 allowas_in_enable6:
556 description:
557 - Enable/disable IPv6 Enable to allow my AS in AS path.
558 type: str
559 choices:
560 - 'enable'
561 - 'disable'
562 allowas_in_evpn:
563 description:
564 - The maximum number of occurrence of my AS number allowed for L2VPN EVPN route.
565 type: int
566 allowas_in_vpnv4:
567 description:
568 - The maximum number of occurrence of my AS number allowed for VPNv4 route.
569 type: int
570 allowas_in_vpnv6:
571 description:
572 - The maximum number of occurrence of my AS number allowed for VPNv6 route.
573 type: int
574 allowas_in6:
575 description:
576 - IPv6 The maximum number of occurrence of my AS number allowed.
577 type: int
578 as_override:
579 description:
580 - Enable/disable replace peer AS with own AS for IPv4.
581 type: str
582 choices:
583 - 'enable'
584 - 'disable'
585 as_override6:
586 description:
587 - Enable/disable replace peer AS with own AS for IPv6.
588 type: str
589 choices:
590 - 'enable'
591 - 'disable'
592 attribute_unchanged:
593 description:
594 - IPv4 List of attributes that should be unchanged.
595 type: list
596 elements: str
597 choices:
598 - 'as-path'
599 - 'med'
600 - 'next-hop'
601 attribute_unchanged_vpnv4:
602 description:
603 - List of attributes that should be unchanged for VPNv4 route.
604 type: list
605 elements: str
606 choices:
607 - 'as-path'
608 - 'med'
609 - 'next-hop'
610 attribute_unchanged_vpnv6:
611 description:
612 - List of attributes that should not be changed for VPNv6 route.
613 type: list
614 elements: str
615 choices:
616 - 'as-path'
617 - 'med'
618 - 'next-hop'
619 attribute_unchanged6:
620 description:
621 - IPv6 List of attributes that should be unchanged.
622 type: list
623 elements: str
624 choices:
625 - 'as-path'
626 - 'med'
627 - 'next-hop'
628 auth_options:
629 description:
630 - Key-chain name for TCP authentication options. Source router.key-chain.name.
631 type: str
632 bfd:
633 description:
634 - Enable/disable BFD for this neighbor.
635 type: str
636 choices:
637 - 'enable'
638 - 'disable'
639 capability_default_originate:
640 description:
641 - Enable/disable advertise default IPv4 route to this neighbor.
642 type: str
643 choices:
644 - 'enable'
645 - 'disable'
646 capability_default_originate6:
647 description:
648 - Enable/disable advertise default IPv6 route to this neighbor.
649 type: str
650 choices:
651 - 'enable'
652 - 'disable'
653 capability_dynamic:
654 description:
655 - Enable/disable advertise dynamic capability to this neighbor.
656 type: str
657 choices:
658 - 'enable'
659 - 'disable'
660 capability_graceful_restart:
661 description:
662 - Enable/disable advertise IPv4 graceful restart capability to this neighbor.
663 type: str
664 choices:
665 - 'enable'
666 - 'disable'
667 capability_graceful_restart_evpn:
668 description:
669 - Enable/disable advertisement of L2VPN EVPN graceful restart capability to this neighbor.
670 type: str
671 choices:
672 - 'enable'
673 - 'disable'
674 capability_graceful_restart_vpnv4:
675 description:
676 - Enable/disable advertise VPNv4 graceful restart capability to this neighbor.
677 type: str
678 choices:
679 - 'enable'
680 - 'disable'
681 capability_graceful_restart_vpnv6:
682 description:
683 - Enable/disable advertisement of VPNv6 graceful restart capability to this neighbor.
684 type: str
685 choices:
686 - 'enable'
687 - 'disable'
688 capability_graceful_restart6:
689 description:
690 - Enable/disable advertise IPv6 graceful restart capability to this neighbor.
691 type: str
692 choices:
693 - 'enable'
694 - 'disable'
695 capability_orf:
696 description:
697 - Accept/Send IPv4 ORF lists to/from this neighbor.
698 type: str
699 choices:
700 - 'none'
701 - 'receive'
702 - 'send'
703 - 'both'
704 capability_orf6:
705 description:
706 - Accept/Send IPv6 ORF lists to/from this neighbor.
707 type: str
708 choices:
709 - 'none'
710 - 'receive'
711 - 'send'
712 - 'both'
713 capability_route_refresh:
714 description:
715 - Enable/disable advertise route refresh capability to this neighbor.
716 type: str
717 choices:
718 - 'enable'
719 - 'disable'
720 conditional_advertise:
721 description:
722 - Conditional advertisement.
723 type: list
724 elements: dict
725 suboptions:
726 advertise_routemap:
727 description:
728 - Name of advertising route map. Source router.route-map.name.
729 required: true
730 type: str
731 condition_routemap:
732 description:
733 - List of conditional route maps. Source router.route-map.name.
734 type: list
735 elements: dict
736 suboptions:
737 name:
738 description:
739 - Route map. Source router.route-map.name.
740 required: true
741 type: str
742 condition_type:
743 description:
744 - Type of condition.
745 type: str
746 choices:
747 - 'exist'
748 - 'non-exist'
749 conditional_advertise6:
750 description:
751 - IPv6 conditional advertisement.
752 type: list
753 elements: dict
754 suboptions:
755 advertise_routemap:
756 description:
757 - Name of advertising route map. Source router.route-map.name.
758 required: true
759 type: str
760 condition_routemap:
761 description:
762 - List of conditional route maps. Source router.route-map.name.
763 type: list
764 elements: dict
765 suboptions:
766 name:
767 description:
768 - Route map. Source router.route-map.name.
769 required: true
770 type: str
771 condition_type:
772 description:
773 - Type of condition.
774 type: str
775 choices:
776 - 'exist'
777 - 'non-exist'
778 connect_timer:
779 description:
780 - Interval (sec) for connect timer.
781 type: int
782 default_originate_routemap:
783 description:
784 - Route map to specify criteria to originate IPv4 default. Source router.route-map.name.
785 type: str
786 default_originate_routemap6:
787 description:
788 - Route map to specify criteria to originate IPv6 default. Source router.route-map.name.
789 type: str
790 description:
791 description:
792 - Description.
793 type: str
794 distribute_list_in:
795 description:
796 - Filter for IPv4 updates from this neighbor. Source router.access-list.name.
797 type: str
798 distribute_list_in_vpnv4:
799 description:
800 - Filter for VPNv4 updates from this neighbor. Source router.access-list.name.
801 type: str
802 distribute_list_in_vpnv6:
803 description:
804 - Filter for VPNv6 updates from this neighbor. Source router.access-list6.name.
805 type: str
806 distribute_list_in6:
807 description:
808 - Filter for IPv6 updates from this neighbor. Source router.access-list6.name.
809 type: str
810 distribute_list_out:
811 description:
812 - Filter for IPv4 updates to this neighbor. Source router.access-list.name.
813 type: str
814 distribute_list_out_vpnv4:
815 description:
816 - Filter for VPNv4 updates to this neighbor. Source router.access-list.name.
817 type: str
818 distribute_list_out_vpnv6:
819 description:
820 - Filter for VPNv6 updates to this neighbor. Source router.access-list6.name.
821 type: str
822 distribute_list_out6:
823 description:
824 - Filter for IPv6 updates to this neighbor. Source router.access-list6.name.
825 type: str
826 dont_capability_negotiate:
827 description:
828 - Do not negotiate capabilities with this neighbor.
829 type: str
830 choices:
831 - 'enable'
832 - 'disable'
833 ebgp_enforce_multihop:
834 description:
835 - Enable/disable allow multi-hop EBGP neighbors.
836 type: str
837 choices:
838 - 'enable'
839 - 'disable'
840 ebgp_multihop_ttl:
841 description:
842 - EBGP multihop TTL for this peer.
843 type: int
844 filter_list_in:
845 description:
846 - BGP filter for IPv4 inbound routes. Source router.aspath-list.name.
847 type: str
848 filter_list_in_vpnv4:
849 description:
850 - BGP filter for VPNv4 inbound routes. Source router.aspath-list.name.
851 type: str
852 filter_list_in_vpnv6:
853 description:
854 - BGP filter for VPNv6 inbound routes. Source router.aspath-list.name.
855 type: str
856 filter_list_in6:
857 description:
858 - BGP filter for IPv6 inbound routes. Source router.aspath-list.name.
859 type: str
860 filter_list_out:
861 description:
862 - BGP filter for IPv4 outbound routes. Source router.aspath-list.name.
863 type: str
864 filter_list_out_vpnv4:
865 description:
866 - BGP filter for VPNv4 outbound routes. Source router.aspath-list.name.
867 type: str
868 filter_list_out_vpnv6:
869 description:
870 - BGP filter for VPNv6 outbound routes. Source router.aspath-list.name.
871 type: str
872 filter_list_out6:
873 description:
874 - BGP filter for IPv6 outbound routes. Source router.aspath-list.name.
875 type: str
876 holdtime_timer:
877 description:
878 - Interval (sec) before peer considered dead.
879 type: int
880 interface:
881 description:
882 - Specify outgoing interface for peer connection. For IPv6 peer, the interface should have link-local address. Source system
883 .interface.name.
884 type: str
885 ip:
886 description:
887 - IP/IPv6 address of neighbor.
888 required: true
889 type: str
890 keep_alive_timer:
891 description:
892 - Keep alive timer interval (sec).
893 type: int
894 link_down_failover:
895 description:
896 - Enable/disable failover upon link down.
897 type: str
898 choices:
899 - 'enable'
900 - 'disable'
901 local_as:
902 description:
903 - Local AS number of neighbor.
904 type: str
905 local_as_no_prepend:
906 description:
907 - Do not prepend local-as to incoming updates.
908 type: str
909 choices:
910 - 'enable'
911 - 'disable'
912 local_as_replace_as:
913 description:
914 - Replace real AS with local-as in outgoing updates.
915 type: str
916 choices:
917 - 'enable'
918 - 'disable'
919 maximum_prefix:
920 description:
921 - Maximum number of IPv4 prefixes to accept from this peer.
922 type: int
923 maximum_prefix_evpn:
924 description:
925 - Maximum number of L2VPN EVPN prefixes to accept from this peer.
926 type: int
927 maximum_prefix_threshold:
928 description:
929 - Maximum IPv4 prefix threshold value (1 - 100 percent).
930 type: int
931 maximum_prefix_threshold_evpn:
932 description:
933 - Maximum L2VPN EVPN prefix threshold value (1 - 100 percent).
934 type: int
935 maximum_prefix_threshold_vpnv4:
936 description:
937 - Maximum VPNv4 prefix threshold value (1 - 100 percent).
938 type: int
939 maximum_prefix_threshold_vpnv6:
940 description:
941 - Maximum VPNv6 prefix threshold value (1 - 100 percent).
942 type: int
943 maximum_prefix_threshold6:
944 description:
945 - Maximum IPv6 prefix threshold value (1 - 100 percent).
946 type: int
947 maximum_prefix_vpnv4:
948 description:
949 - Maximum number of VPNv4 prefixes to accept from this peer.
950 type: int
951 maximum_prefix_vpnv6:
952 description:
953 - Maximum number of VPNv6 prefixes to accept from this peer.
954 type: int
955 maximum_prefix_warning_only:
956 description:
957 - Enable/disable IPv4 Only give warning message when limit is exceeded.
958 type: str
959 choices:
960 - 'enable'
961 - 'disable'
962 maximum_prefix_warning_only_evpn:
963 description:
964 - Enable/disable only sending warning message when exceeding limit of L2VPN EVPN routes.
965 type: str
966 choices:
967 - 'enable'
968 - 'disable'
969 maximum_prefix_warning_only_vpnv4:
970 description:
971 - Enable/disable only giving warning message when limit is exceeded for VPNv4 routes.
972 type: str
973 choices:
974 - 'enable'
975 - 'disable'
976 maximum_prefix_warning_only_vpnv6:
977 description:
978 - Enable/disable warning message when limit is exceeded for VPNv6 routes.
979 type: str
980 choices:
981 - 'enable'
982 - 'disable'
983 maximum_prefix_warning_only6:
984 description:
985 - Enable/disable IPv6 Only give warning message when limit is exceeded.
986 type: str
987 choices:
988 - 'enable'
989 - 'disable'
990 maximum_prefix6:
991 description:
992 - Maximum number of IPv6 prefixes to accept from this peer.
993 type: int
994 next_hop_self:
995 description:
996 - Enable/disable IPv4 next-hop calculation for this neighbor.
997 type: str
998 choices:
999 - 'enable'
1000 - 'disable'
1001 next_hop_self_rr:
1002 description:
1003 - Enable/disable setting nexthop"s address to interface"s IPv4 address for route-reflector routes.
1004 type: str
1005 choices:
1006 - 'enable'
1007 - 'disable'
1008 next_hop_self_rr6:
1009 description:
1010 - Enable/disable setting nexthop"s address to interface"s IPv6 address for route-reflector routes.
1011 type: str
1012 choices:
1013 - 'enable'
1014 - 'disable'
1015 next_hop_self_vpnv4:
1016 description:
1017 - Enable/disable setting VPNv4 next-hop to interface"s IP address for this neighbor.
1018 type: str
1019 choices:
1020 - 'enable'
1021 - 'disable'
1022 next_hop_self_vpnv6:
1023 description:
1024 - Enable/disable use of outgoing interface"s IP address as VPNv6 next-hop for this neighbor.
1025 type: str
1026 choices:
1027 - 'enable'
1028 - 'disable'
1029 next_hop_self6:
1030 description:
1031 - Enable/disable IPv6 next-hop calculation for this neighbor.
1032 type: str
1033 choices:
1034 - 'enable'
1035 - 'disable'
1036 override_capability:
1037 description:
1038 - Enable/disable override result of capability negotiation.
1039 type: str
1040 choices:
1041 - 'enable'
1042 - 'disable'
1043 passive:
1044 description:
1045 - Enable/disable sending of open messages to this neighbor.
1046 type: str
1047 choices:
1048 - 'enable'
1049 - 'disable'
1050 password:
1051 description:
1052 - Password used in MD5 authentication.
1053 type: str
1054 prefix_list_in:
1055 description:
1056 - IPv4 Inbound filter for updates from this neighbor. Source router.prefix-list.name.
1057 type: str
1058 prefix_list_in_vpnv4:
1059 description:
1060 - Inbound filter for VPNv4 updates from this neighbor. Source router.prefix-list.name.
1061 type: str
1062 prefix_list_in_vpnv6:
1063 description:
1064 - Inbound filter for VPNv6 updates from this neighbor. Source router.prefix-list6.name.
1065 type: str
1066 prefix_list_in6:
1067 description:
1068 - IPv6 Inbound filter for updates from this neighbor. Source router.prefix-list6.name.
1069 type: str
1070 prefix_list_out:
1071 description:
1072 - IPv4 Outbound filter for updates to this neighbor. Source router.prefix-list.name.
1073 type: str
1074 prefix_list_out_vpnv4:
1075 description:
1076 - Outbound filter for VPNv4 updates to this neighbor. Source router.prefix-list.name.
1077 type: str
1078 prefix_list_out_vpnv6:
1079 description:
1080 - Outbound filter for VPNv6 updates to this neighbor. Source router.prefix-list6.name.
1081 type: str
1082 prefix_list_out6:
1083 description:
1084 - IPv6 Outbound filter for updates to this neighbor. Source router.prefix-list6.name.
1085 type: str
1086 remote_as:
1087 description:
1088 - AS number of neighbor.
1089 type: str
1090 remove_private_as:
1091 description:
1092 - Enable/disable remove private AS number from IPv4 outbound updates.
1093 type: str
1094 choices:
1095 - 'enable'
1096 - 'disable'
1097 remove_private_as_evpn:
1098 description:
1099 - Enable/disable removing private AS number from L2VPN EVPN outbound updates.
1100 type: str
1101 choices:
1102 - 'enable'
1103 - 'disable'
1104 remove_private_as_vpnv4:
1105 description:
1106 - Enable/disable remove private AS number from VPNv4 outbound updates.
1107 type: str
1108 choices:
1109 - 'enable'
1110 - 'disable'
1111 remove_private_as_vpnv6:
1112 description:
1113 - Enable/disable to remove private AS number from VPNv6 outbound updates.
1114 type: str
1115 choices:
1116 - 'enable'
1117 - 'disable'
1118 remove_private_as6:
1119 description:
1120 - Enable/disable remove private AS number from IPv6 outbound updates.
1121 type: str
1122 choices:
1123 - 'enable'
1124 - 'disable'
1125 restart_time:
1126 description:
1127 - Graceful restart delay time (sec, 0 = global default).
1128 type: int
1129 retain_stale_time:
1130 description:
1131 - Time to retain stale routes.
1132 type: int
1133 route_map_in:
1134 description:
1135 - IPv4 Inbound route map filter. Source router.route-map.name.
1136 type: str
1137 route_map_in_evpn:
1138 description:
1139 - L2VPN EVPN inbound route map filter. Source router.route-map.name.
1140 type: str
1141 route_map_in_vpnv4:
1142 description:
1143 - VPNv4 inbound route map filter. Source router.route-map.name.
1144 type: str
1145 route_map_in_vpnv6:
1146 description:
1147 - VPNv6 inbound route map filter. Source router.route-map.name.
1148 type: str
1149 route_map_in6:
1150 description:
1151 - IPv6 Inbound route map filter. Source router.route-map.name.
1152 type: str
1153 route_map_out:
1154 description:
1155 - IPv4 outbound route map filter. Source router.route-map.name.
1156 type: str
1157 route_map_out_evpn:
1158 description:
1159 - L2VPN EVPN outbound route map filter. Source router.route-map.name.
1160 type: str
1161 route_map_out_preferable:
1162 description:
1163 - IPv4 outbound route map filter if the peer is preferred. Source router.route-map.name.
1164 type: str
1165 route_map_out_vpnv4:
1166 description:
1167 - VPNv4 outbound route map filter. Source router.route-map.name.
1168 type: str
1169 route_map_out_vpnv4_preferable:
1170 description:
1171 - VPNv4 outbound route map filter if the peer is preferred. Source router.route-map.name.
1172 type: str
1173 route_map_out_vpnv6:
1174 description:
1175 - VPNv6 outbound route map filter. Source router.route-map.name.
1176 type: str
1177 route_map_out_vpnv6_preferable:
1178 description:
1179 - VPNv6 outbound route map filter if this neighbor is preferred. Source router.route-map.name.
1180 type: str
1181 route_map_out6:
1182 description:
1183 - IPv6 Outbound route map filter. Source router.route-map.name.
1184 type: str
1185 route_map_out6_preferable:
1186 description:
1187 - IPv6 outbound route map filter if the peer is preferred. Source router.route-map.name.
1188 type: str
1189 route_reflector_client:
1190 description:
1191 - Enable/disable IPv4 AS route reflector client.
1192 type: str
1193 choices:
1194 - 'enable'
1195 - 'disable'
1196 route_reflector_client_evpn:
1197 description:
1198 - Enable/disable L2VPN EVPN AS route reflector client for this neighbor.
1199 type: str
1200 choices:
1201 - 'enable'
1202 - 'disable'
1203 route_reflector_client_vpnv4:
1204 description:
1205 - Enable/disable VPNv4 AS route reflector client for this neighbor.
1206 type: str
1207 choices:
1208 - 'enable'
1209 - 'disable'
1210 route_reflector_client_vpnv6:
1211 description:
1212 - Enable/disable VPNv6 AS route reflector client for this neighbor.
1213 type: str
1214 choices:
1215 - 'enable'
1216 - 'disable'
1217 route_reflector_client6:
1218 description:
1219 - Enable/disable IPv6 AS route reflector client.
1220 type: str
1221 choices:
1222 - 'enable'
1223 - 'disable'
1224 route_server_client:
1225 description:
1226 - Enable/disable IPv4 AS route server client.
1227 type: str
1228 choices:
1229 - 'enable'
1230 - 'disable'
1231 route_server_client_evpn:
1232 description:
1233 - Enable/disable L2VPN EVPN AS route server client for this neighbor.
1234 type: str
1235 choices:
1236 - 'enable'
1237 - 'disable'
1238 route_server_client_vpnv4:
1239 description:
1240 - Enable/disable VPNv4 AS route server client for this neighbor.
1241 type: str
1242 choices:
1243 - 'enable'
1244 - 'disable'
1245 route_server_client_vpnv6:
1246 description:
1247 - Enable/disable VPNv6 AS route server client for this neighbor.
1248 type: str
1249 choices:
1250 - 'enable'
1251 - 'disable'
1252 route_server_client6:
1253 description:
1254 - Enable/disable IPv6 AS route server client.
1255 type: str
1256 choices:
1257 - 'enable'
1258 - 'disable'
1259 rr_attr_allow_change:
1260 description:
1261 - Enable/disable allowing change of route attributes when advertising to IPv4 route reflector clients.
1262 type: str
1263 choices:
1264 - 'enable'
1265 - 'disable'
1266 rr_attr_allow_change_evpn:
1267 description:
1268 - Enable/disable allowing change of route attributes when advertising to L2VPN EVPN route reflector clients.
1269 type: str
1270 choices:
1271 - 'enable'
1272 - 'disable'
1273 rr_attr_allow_change_vpnv4:
1274 description:
1275 - Enable/disable allowing change of route attributes when advertising to VPNv4 route reflector clients.
1276 type: str
1277 choices:
1278 - 'enable'
1279 - 'disable'
1280 rr_attr_allow_change_vpnv6:
1281 description:
1282 - Enable/disable allowing change of route attributes when advertising to VPNv6 route reflector clients.
1283 type: str
1284 choices:
1285 - 'enable'
1286 - 'disable'
1287 rr_attr_allow_change6:
1288 description:
1289 - Enable/disable allowing change of route attributes when advertising to IPv6 route reflector clients.
1290 type: str
1291 choices:
1292 - 'enable'
1293 - 'disable'
1294 send_community:
1295 description:
1296 - IPv4 Send community attribute to neighbor.
1297 type: str
1298 choices:
1299 - 'standard'
1300 - 'extended'
1301 - 'both'
1302 - 'disable'
1303 send_community_evpn:
1304 description:
1305 - Enable/disable sending community attribute to neighbor for L2VPN EVPN address family.
1306 type: str
1307 choices:
1308 - 'standard'
1309 - 'extended'
1310 - 'both'
1311 - 'disable'
1312 send_community_vpnv4:
1313 description:
1314 - Send community attribute to neighbor for VPNv4 address family.
1315 type: str
1316 choices:
1317 - 'standard'
1318 - 'extended'
1319 - 'both'
1320 - 'disable'
1321 send_community_vpnv6:
1322 description:
1323 - Enable/disable sending community attribute to this neighbor for VPNv6 address family.
1324 type: str
1325 choices:
1326 - 'standard'
1327 - 'extended'
1328 - 'both'
1329 - 'disable'
1330 send_community6:
1331 description:
1332 - IPv6 Send community attribute to neighbor.
1333 type: str
1334 choices:
1335 - 'standard'
1336 - 'extended'
1337 - 'both'
1338 - 'disable'
1339 shutdown:
1340 description:
1341 - Enable/disable shutdown this neighbor.
1342 type: str
1343 choices:
1344 - 'enable'
1345 - 'disable'
1346 soft_reconfiguration:
1347 description:
1348 - Enable/disable allow IPv4 inbound soft reconfiguration.
1349 type: str
1350 choices:
1351 - 'enable'
1352 - 'disable'
1353 soft_reconfiguration_evpn:
1354 description:
1355 - Enable/disable L2VPN EVPN inbound soft reconfiguration.
1356 type: str
1357 choices:
1358 - 'enable'
1359 - 'disable'
1360 soft_reconfiguration_vpnv4:
1361 description:
1362 - Enable/disable allow VPNv4 inbound soft reconfiguration.
1363 type: str
1364 choices:
1365 - 'enable'
1366 - 'disable'
1367 soft_reconfiguration_vpnv6:
1368 description:
1369 - Enable/disable VPNv6 inbound soft reconfiguration.
1370 type: str
1371 choices:
1372 - 'enable'
1373 - 'disable'
1374 soft_reconfiguration6:
1375 description:
1376 - Enable/disable allow IPv6 inbound soft reconfiguration.
1377 type: str
1378 choices:
1379 - 'enable'
1380 - 'disable'
1381 stale_route:
1382 description:
1383 - Enable/disable stale route after neighbor down.
1384 type: str
1385 choices:
1386 - 'enable'
1387 - 'disable'
1388 strict_capability_match:
1389 description:
1390 - Enable/disable strict capability matching.
1391 type: str
1392 choices:
1393 - 'enable'
1394 - 'disable'
1395 unsuppress_map:
1396 description:
1397 - IPv4 Route map to selectively unsuppress suppressed routes. Source router.route-map.name.
1398 type: str
1399 unsuppress_map6:
1400 description:
1401 - IPv6 Route map to selectively unsuppress suppressed routes. Source router.route-map.name.
1402 type: str
1403 update_source:
1404 description:
1405 - Interface to use as source IP/IPv6 address of TCP connections. Source system.interface.name.
1406 type: str
1407 weight:
1408 description:
1409 - Neighbor weight.
1410 type: int
1411 neighbor_group:
1412 description:
1413 - BGP neighbor group table.
1414 type: list
1415 elements: dict
1416 suboptions:
1417 activate:
1418 description:
1419 - Enable/disable address family IPv4 for this neighbor.
1420 type: str
1421 choices:
1422 - 'enable'
1423 - 'disable'
1424 activate_evpn:
1425 description:
1426 - Enable/disable address family L2VPN EVPN for this neighbor.
1427 type: str
1428 choices:
1429 - 'enable'
1430 - 'disable'
1431 activate_vpnv4:
1432 description:
1433 - Enable/disable address family VPNv4 for this neighbor.
1434 type: str
1435 choices:
1436 - 'enable'
1437 - 'disable'
1438 activate_vpnv6:
1439 description:
1440 - Enable/disable address family VPNv6 for this neighbor.
1441 type: str
1442 choices:
1443 - 'enable'
1444 - 'disable'
1445 activate6:
1446 description:
1447 - Enable/disable address family IPv6 for this neighbor.
1448 type: str
1449 choices:
1450 - 'enable'
1451 - 'disable'
1452 additional_path:
1453 description:
1454 - Enable/disable IPv4 additional-path capability.
1455 type: str
1456 choices:
1457 - 'send'
1458 - 'receive'
1459 - 'both'
1460 - 'disable'
1461 additional_path_vpnv4:
1462 description:
1463 - Enable/disable VPNv4 additional-path capability.
1464 type: str
1465 choices:
1466 - 'send'
1467 - 'receive'
1468 - 'both'
1469 - 'disable'
1470 additional_path_vpnv6:
1471 description:
1472 - Enable/disable VPNv6 additional-path capability.
1473 type: str
1474 choices:
1475 - 'send'
1476 - 'receive'
1477 - 'both'
1478 - 'disable'
1479 additional_path6:
1480 description:
1481 - Enable/disable IPv6 additional-path capability.
1482 type: str
1483 choices:
1484 - 'send'
1485 - 'receive'
1486 - 'both'
1487 - 'disable'
1488 adv_additional_path:
1489 description:
1490 - Number of IPv4 additional paths that can be advertised to this neighbor.
1491 type: int
1492 adv_additional_path_vpnv4:
1493 description:
1494 - Number of VPNv4 additional paths that can be advertised to this neighbor.
1495 type: int
1496 adv_additional_path_vpnv6:
1497 description:
1498 - Number of VPNv6 additional paths that can be advertised to this neighbor.
1499 type: int
1500 adv_additional_path6:
1501 description:
1502 - Number of IPv6 additional paths that can be advertised to this neighbor.
1503 type: int
1504 advertisement_interval:
1505 description:
1506 - Minimum interval (sec) between sending updates.
1507 type: int
1508 allowas_in:
1509 description:
1510 - IPv4 The maximum number of occurrence of my AS number allowed.
1511 type: int
1512 allowas_in_enable:
1513 description:
1514 - Enable/disable IPv4 Enable to allow my AS in AS path.
1515 type: str
1516 choices:
1517 - 'enable'
1518 - 'disable'
1519 allowas_in_enable_evpn:
1520 description:
1521 - Enable/disable to allow my AS in AS path for L2VPN EVPN route.
1522 type: str
1523 choices:
1524 - 'enable'
1525 - 'disable'
1526 allowas_in_enable_vpnv4:
1527 description:
1528 - Enable/disable to allow my AS in AS path for VPNv4 route.
1529 type: str
1530 choices:
1531 - 'enable'
1532 - 'disable'
1533 allowas_in_enable_vpnv6:
1534 description:
1535 - Enable/disable use of my AS in AS path for VPNv6 route.
1536 type: str
1537 choices:
1538 - 'enable'
1539 - 'disable'
1540 allowas_in_enable6:
1541 description:
1542 - Enable/disable IPv6 Enable to allow my AS in AS path.
1543 type: str
1544 choices:
1545 - 'enable'
1546 - 'disable'
1547 allowas_in_evpn:
1548 description:
1549 - The maximum number of occurrence of my AS number allowed for L2VPN EVPN route.
1550 type: int
1551 allowas_in_vpnv4:
1552 description:
1553 - The maximum number of occurrence of my AS number allowed for VPNv4 route.
1554 type: int
1555 allowas_in_vpnv6:
1556 description:
1557 - The maximum number of occurrence of my AS number allowed for VPNv6 route.
1558 type: int
1559 allowas_in6:
1560 description:
1561 - IPv6 The maximum number of occurrence of my AS number allowed.
1562 type: int
1563 as_override:
1564 description:
1565 - Enable/disable replace peer AS with own AS for IPv4.
1566 type: str
1567 choices:
1568 - 'enable'
1569 - 'disable'
1570 as_override6:
1571 description:
1572 - Enable/disable replace peer AS with own AS for IPv6.
1573 type: str
1574 choices:
1575 - 'enable'
1576 - 'disable'
1577 attribute_unchanged:
1578 description:
1579 - IPv4 List of attributes that should be unchanged.
1580 type: list
1581 elements: str
1582 choices:
1583 - 'as-path'
1584 - 'med'
1585 - 'next-hop'
1586 attribute_unchanged_vpnv4:
1587 description:
1588 - List of attributes that should be unchanged for VPNv4 route.
1589 type: list
1590 elements: str
1591 choices:
1592 - 'as-path'
1593 - 'med'
1594 - 'next-hop'
1595 attribute_unchanged_vpnv6:
1596 description:
1597 - List of attributes that should not be changed for VPNv6 route.
1598 type: list
1599 elements: str
1600 choices:
1601 - 'as-path'
1602 - 'med'
1603 - 'next-hop'
1604 attribute_unchanged6:
1605 description:
1606 - IPv6 List of attributes that should be unchanged.
1607 type: list
1608 elements: str
1609 choices:
1610 - 'as-path'
1611 - 'med'
1612 - 'next-hop'
1613 auth_options:
1614 description:
1615 - Key-chain name for TCP authentication options. Source router.key-chain.name.
1616 type: str
1617 bfd:
1618 description:
1619 - Enable/disable BFD for this neighbor.
1620 type: str
1621 choices:
1622 - 'enable'
1623 - 'disable'
1624 capability_default_originate:
1625 description:
1626 - Enable/disable advertise default IPv4 route to this neighbor.
1627 type: str
1628 choices:
1629 - 'enable'
1630 - 'disable'
1631 capability_default_originate6:
1632 description:
1633 - Enable/disable advertise default IPv6 route to this neighbor.
1634 type: str
1635 choices:
1636 - 'enable'
1637 - 'disable'
1638 capability_dynamic:
1639 description:
1640 - Enable/disable advertise dynamic capability to this neighbor.
1641 type: str
1642 choices:
1643 - 'enable'
1644 - 'disable'
1645 capability_graceful_restart:
1646 description:
1647 - Enable/disable advertise IPv4 graceful restart capability to this neighbor.
1648 type: str
1649 choices:
1650 - 'enable'
1651 - 'disable'
1652 capability_graceful_restart_evpn:
1653 description:
1654 - Enable/disable advertisement of L2VPN EVPN graceful restart capability to this neighbor.
1655 type: str
1656 choices:
1657 - 'enable'
1658 - 'disable'
1659 capability_graceful_restart_vpnv4:
1660 description:
1661 - Enable/disable advertise VPNv4 graceful restart capability to this neighbor.
1662 type: str
1663 choices:
1664 - 'enable'
1665 - 'disable'
1666 capability_graceful_restart_vpnv6:
1667 description:
1668 - Enable/disable advertisement of VPNv6 graceful restart capability to this neighbor.
1669 type: str
1670 choices:
1671 - 'enable'
1672 - 'disable'
1673 capability_graceful_restart6:
1674 description:
1675 - Enable/disable advertise IPv6 graceful restart capability to this neighbor.
1676 type: str
1677 choices:
1678 - 'enable'
1679 - 'disable'
1680 capability_orf:
1681 description:
1682 - Accept/Send IPv4 ORF lists to/from this neighbor.
1683 type: str
1684 choices:
1685 - 'none'
1686 - 'receive'
1687 - 'send'
1688 - 'both'
1689 capability_orf6:
1690 description:
1691 - Accept/Send IPv6 ORF lists to/from this neighbor.
1692 type: str
1693 choices:
1694 - 'none'
1695 - 'receive'
1696 - 'send'
1697 - 'both'
1698 capability_route_refresh:
1699 description:
1700 - Enable/disable advertise route refresh capability to this neighbor.
1701 type: str
1702 choices:
1703 - 'enable'
1704 - 'disable'
1705 connect_timer:
1706 description:
1707 - Interval (sec) for connect timer.
1708 type: int
1709 default_originate_routemap:
1710 description:
1711 - Route map to specify criteria to originate IPv4 default. Source router.route-map.name.
1712 type: str
1713 default_originate_routemap6:
1714 description:
1715 - Route map to specify criteria to originate IPv6 default. Source router.route-map.name.
1716 type: str
1717 description:
1718 description:
1719 - Description.
1720 type: str
1721 distribute_list_in:
1722 description:
1723 - Filter for IPv4 updates from this neighbor. Source router.access-list.name.
1724 type: str
1725 distribute_list_in_vpnv4:
1726 description:
1727 - Filter for VPNv4 updates from this neighbor. Source router.access-list.name.
1728 type: str
1729 distribute_list_in_vpnv6:
1730 description:
1731 - Filter for VPNv6 updates from this neighbor. Source router.access-list6.name.
1732 type: str
1733 distribute_list_in6:
1734 description:
1735 - Filter for IPv6 updates from this neighbor. Source router.access-list6.name.
1736 type: str
1737 distribute_list_out:
1738 description:
1739 - Filter for IPv4 updates to this neighbor. Source router.access-list.name.
1740 type: str
1741 distribute_list_out_vpnv4:
1742 description:
1743 - Filter for VPNv4 updates to this neighbor. Source router.access-list.name.
1744 type: str
1745 distribute_list_out_vpnv6:
1746 description:
1747 - Filter for VPNv6 updates to this neighbor. Source router.access-list6.name.
1748 type: str
1749 distribute_list_out6:
1750 description:
1751 - Filter for IPv6 updates to this neighbor. Source router.access-list6.name.
1752 type: str
1753 dont_capability_negotiate:
1754 description:
1755 - Do not negotiate capabilities with this neighbor.
1756 type: str
1757 choices:
1758 - 'enable'
1759 - 'disable'
1760 ebgp_enforce_multihop:
1761 description:
1762 - Enable/disable allow multi-hop EBGP neighbors.
1763 type: str
1764 choices:
1765 - 'enable'
1766 - 'disable'
1767 ebgp_multihop_ttl:
1768 description:
1769 - EBGP multihop TTL for this peer.
1770 type: int
1771 filter_list_in:
1772 description:
1773 - BGP filter for IPv4 inbound routes. Source router.aspath-list.name.
1774 type: str
1775 filter_list_in_vpnv4:
1776 description:
1777 - BGP filter for VPNv4 inbound routes. Source router.aspath-list.name.
1778 type: str
1779 filter_list_in_vpnv6:
1780 description:
1781 - BGP filter for VPNv6 inbound routes. Source router.aspath-list.name.
1782 type: str
1783 filter_list_in6:
1784 description:
1785 - BGP filter for IPv6 inbound routes. Source router.aspath-list.name.
1786 type: str
1787 filter_list_out:
1788 description:
1789 - BGP filter for IPv4 outbound routes. Source router.aspath-list.name.
1790 type: str
1791 filter_list_out_vpnv4:
1792 description:
1793 - BGP filter for VPNv4 outbound routes. Source router.aspath-list.name.
1794 type: str
1795 filter_list_out_vpnv6:
1796 description:
1797 - BGP filter for VPNv6 outbound routes. Source router.aspath-list.name.
1798 type: str
1799 filter_list_out6:
1800 description:
1801 - BGP filter for IPv6 outbound routes. Source router.aspath-list.name.
1802 type: str
1803 holdtime_timer:
1804 description:
1805 - Interval (sec) before peer considered dead.
1806 type: int
1807 interface:
1808 description:
1809 - Specify outgoing interface for peer connection. For IPv6 peer, the interface should have link-local address. Source system
1810 .interface.name.
1811 type: str
1812 keep_alive_timer:
1813 description:
1814 - Keep alive timer interval (sec).
1815 type: int
1816 link_down_failover:
1817 description:
1818 - Enable/disable failover upon link down.
1819 type: str
1820 choices:
1821 - 'enable'
1822 - 'disable'
1823 local_as:
1824 description:
1825 - Local AS number of neighbor.
1826 type: str
1827 local_as_no_prepend:
1828 description:
1829 - Do not prepend local-as to incoming updates.
1830 type: str
1831 choices:
1832 - 'enable'
1833 - 'disable'
1834 local_as_replace_as:
1835 description:
1836 - Replace real AS with local-as in outgoing updates.
1837 type: str
1838 choices:
1839 - 'enable'
1840 - 'disable'
1841 maximum_prefix:
1842 description:
1843 - Maximum number of IPv4 prefixes to accept from this peer.
1844 type: int
1845 maximum_prefix_evpn:
1846 description:
1847 - Maximum number of L2VPN EVPN prefixes to accept from this peer.
1848 type: int
1849 maximum_prefix_threshold:
1850 description:
1851 - Maximum IPv4 prefix threshold value (1 - 100 percent).
1852 type: int
1853 maximum_prefix_threshold_evpn:
1854 description:
1855 - Maximum L2VPN EVPN prefix threshold value (1 - 100 percent).
1856 type: int
1857 maximum_prefix_threshold_vpnv4:
1858 description:
1859 - Maximum VPNv4 prefix threshold value (1 - 100 percent).
1860 type: int
1861 maximum_prefix_threshold_vpnv6:
1862 description:
1863 - Maximum VPNv6 prefix threshold value (1 - 100 percent).
1864 type: int
1865 maximum_prefix_threshold6:
1866 description:
1867 - Maximum IPv6 prefix threshold value (1 - 100 percent).
1868 type: int
1869 maximum_prefix_vpnv4:
1870 description:
1871 - Maximum number of VPNv4 prefixes to accept from this peer.
1872 type: int
1873 maximum_prefix_vpnv6:
1874 description:
1875 - Maximum number of VPNv6 prefixes to accept from this peer.
1876 type: int
1877 maximum_prefix_warning_only:
1878 description:
1879 - Enable/disable IPv4 Only give warning message when limit is exceeded.
1880 type: str
1881 choices:
1882 - 'enable'
1883 - 'disable'
1884 maximum_prefix_warning_only_evpn:
1885 description:
1886 - Enable/disable only sending warning message when exceeding limit of L2VPN EVPN routes.
1887 type: str
1888 choices:
1889 - 'enable'
1890 - 'disable'
1891 maximum_prefix_warning_only_vpnv4:
1892 description:
1893 - Enable/disable only giving warning message when limit is exceeded for VPNv4 routes.
1894 type: str
1895 choices:
1896 - 'enable'
1897 - 'disable'
1898 maximum_prefix_warning_only_vpnv6:
1899 description:
1900 - Enable/disable warning message when limit is exceeded for VPNv6 routes.
1901 type: str
1902 choices:
1903 - 'enable'
1904 - 'disable'
1905 maximum_prefix_warning_only6:
1906 description:
1907 - Enable/disable IPv6 Only give warning message when limit is exceeded.
1908 type: str
1909 choices:
1910 - 'enable'
1911 - 'disable'
1912 maximum_prefix6:
1913 description:
1914 - Maximum number of IPv6 prefixes to accept from this peer.
1915 type: int
1916 name:
1917 description:
1918 - Neighbor group name.
1919 required: true
1920 type: str
1921 next_hop_self:
1922 description:
1923 - Enable/disable IPv4 next-hop calculation for this neighbor.
1924 type: str
1925 choices:
1926 - 'enable'
1927 - 'disable'
1928 next_hop_self_rr:
1929 description:
1930 - Enable/disable setting nexthop"s address to interface"s IPv4 address for route-reflector routes.
1931 type: str
1932 choices:
1933 - 'enable'
1934 - 'disable'
1935 next_hop_self_rr6:
1936 description:
1937 - Enable/disable setting nexthop"s address to interface"s IPv6 address for route-reflector routes.
1938 type: str
1939 choices:
1940 - 'enable'
1941 - 'disable'
1942 next_hop_self_vpnv4:
1943 description:
1944 - Enable/disable setting VPNv4 next-hop to interface"s IP address for this neighbor.
1945 type: str
1946 choices:
1947 - 'enable'
1948 - 'disable'
1949 next_hop_self_vpnv6:
1950 description:
1951 - Enable/disable use of outgoing interface"s IP address as VPNv6 next-hop for this neighbor.
1952 type: str
1953 choices:
1954 - 'enable'
1955 - 'disable'
1956 next_hop_self6:
1957 description:
1958 - Enable/disable IPv6 next-hop calculation for this neighbor.
1959 type: str
1960 choices:
1961 - 'enable'
1962 - 'disable'
1963 override_capability:
1964 description:
1965 - Enable/disable override result of capability negotiation.
1966 type: str
1967 choices:
1968 - 'enable'
1969 - 'disable'
1970 passive:
1971 description:
1972 - Enable/disable sending of open messages to this neighbor.
1973 type: str
1974 choices:
1975 - 'enable'
1976 - 'disable'
1977 password:
1978 description:
1979 - Password used in MD5 authentication.
1980 type: str
1981 prefix_list_in:
1982 description:
1983 - IPv4 Inbound filter for updates from this neighbor. Source router.prefix-list.name.
1984 type: str
1985 prefix_list_in_vpnv4:
1986 description:
1987 - Inbound filter for VPNv4 updates from this neighbor. Source router.prefix-list.name.
1988 type: str
1989 prefix_list_in_vpnv6:
1990 description:
1991 - Inbound filter for VPNv6 updates from this neighbor. Source router.prefix-list6.name.
1992 type: str
1993 prefix_list_in6:
1994 description:
1995 - IPv6 Inbound filter for updates from this neighbor. Source router.prefix-list6.name.
1996 type: str
1997 prefix_list_out:
1998 description:
1999 - IPv4 Outbound filter for updates to this neighbor. Source router.prefix-list.name.
2000 type: str
2001 prefix_list_out_vpnv4:
2002 description:
2003 - Outbound filter for VPNv4 updates to this neighbor. Source router.prefix-list.name.
2004 type: str
2005 prefix_list_out_vpnv6:
2006 description:
2007 - Outbound filter for VPNv6 updates to this neighbor. Source router.prefix-list6.name.
2008 type: str
2009 prefix_list_out6:
2010 description:
2011 - IPv6 Outbound filter for updates to this neighbor. Source router.prefix-list6.name.
2012 type: str
2013 remote_as:
2014 description:
2015 - AS number of neighbor.
2016 type: str
2017 remote_as_filter:
2018 description:
2019 - BGP filter for remote AS. Source router.aspath-list.name.
2020 type: str
2021 remove_private_as:
2022 description:
2023 - Enable/disable remove private AS number from IPv4 outbound updates.
2024 type: str
2025 choices:
2026 - 'enable'
2027 - 'disable'
2028 remove_private_as_evpn:
2029 description:
2030 - Enable/disable removing private AS number from L2VPN EVPN outbound updates.
2031 type: str
2032 choices:
2033 - 'enable'
2034 - 'disable'
2035 remove_private_as_vpnv4:
2036 description:
2037 - Enable/disable remove private AS number from VPNv4 outbound updates.
2038 type: str
2039 choices:
2040 - 'enable'
2041 - 'disable'
2042 remove_private_as_vpnv6:
2043 description:
2044 - Enable/disable to remove private AS number from VPNv6 outbound updates.
2045 type: str
2046 choices:
2047 - 'enable'
2048 - 'disable'
2049 remove_private_as6:
2050 description:
2051 - Enable/disable remove private AS number from IPv6 outbound updates.
2052 type: str
2053 choices:
2054 - 'enable'
2055 - 'disable'
2056 restart_time:
2057 description:
2058 - Graceful restart delay time (sec, 0 = global default).
2059 type: int
2060 retain_stale_time:
2061 description:
2062 - Time to retain stale routes.
2063 type: int
2064 route_map_in:
2065 description:
2066 - IPv4 Inbound route map filter. Source router.route-map.name.
2067 type: str
2068 route_map_in_evpn:
2069 description:
2070 - L2VPN EVPN inbound route map filter. Source router.route-map.name.
2071 type: str
2072 route_map_in_vpnv4:
2073 description:
2074 - VPNv4 inbound route map filter. Source router.route-map.name.
2075 type: str
2076 route_map_in_vpnv6:
2077 description:
2078 - VPNv6 inbound route map filter. Source router.route-map.name.
2079 type: str
2080 route_map_in6:
2081 description:
2082 - IPv6 Inbound route map filter. Source router.route-map.name.
2083 type: str
2084 route_map_out:
2085 description:
2086 - IPv4 outbound route map filter. Source router.route-map.name.
2087 type: str
2088 route_map_out_evpn:
2089 description:
2090 - L2VPN EVPN outbound route map filter. Source router.route-map.name.
2091 type: str
2092 route_map_out_preferable:
2093 description:
2094 - IPv4 outbound route map filter if the peer is preferred. Source router.route-map.name.
2095 type: str
2096 route_map_out_vpnv4:
2097 description:
2098 - VPNv4 outbound route map filter. Source router.route-map.name.
2099 type: str
2100 route_map_out_vpnv4_preferable:
2101 description:
2102 - VPNv4 outbound route map filter if the peer is preferred. Source router.route-map.name.
2103 type: str
2104 route_map_out_vpnv6:
2105 description:
2106 - VPNv6 outbound route map filter. Source router.route-map.name.
2107 type: str
2108 route_map_out_vpnv6_preferable:
2109 description:
2110 - VPNv6 outbound route map filter if this neighbor is preferred. Source router.route-map.name.
2111 type: str
2112 route_map_out6:
2113 description:
2114 - IPv6 Outbound route map filter. Source router.route-map.name.
2115 type: str
2116 route_map_out6_preferable:
2117 description:
2118 - IPv6 outbound route map filter if the peer is preferred. Source router.route-map.name.
2119 type: str
2120 route_reflector_client:
2121 description:
2122 - Enable/disable IPv4 AS route reflector client.
2123 type: str
2124 choices:
2125 - 'enable'
2126 - 'disable'
2127 route_reflector_client_evpn:
2128 description:
2129 - Enable/disable L2VPN EVPN AS route reflector client for this neighbor.
2130 type: str
2131 choices:
2132 - 'enable'
2133 - 'disable'
2134 route_reflector_client_vpnv4:
2135 description:
2136 - Enable/disable VPNv4 AS route reflector client for this neighbor.
2137 type: str
2138 choices:
2139 - 'enable'
2140 - 'disable'
2141 route_reflector_client_vpnv6:
2142 description:
2143 - Enable/disable VPNv6 AS route reflector client for this neighbor.
2144 type: str
2145 choices:
2146 - 'enable'
2147 - 'disable'
2148 route_reflector_client6:
2149 description:
2150 - Enable/disable IPv6 AS route reflector client.
2151 type: str
2152 choices:
2153 - 'enable'
2154 - 'disable'
2155 route_server_client:
2156 description:
2157 - Enable/disable IPv4 AS route server client.
2158 type: str
2159 choices:
2160 - 'enable'
2161 - 'disable'
2162 route_server_client_evpn:
2163 description:
2164 - Enable/disable L2VPN EVPN AS route server client for this neighbor.
2165 type: str
2166 choices:
2167 - 'enable'
2168 - 'disable'
2169 route_server_client_vpnv4:
2170 description:
2171 - Enable/disable VPNv4 AS route server client for this neighbor.
2172 type: str
2173 choices:
2174 - 'enable'
2175 - 'disable'
2176 route_server_client_vpnv6:
2177 description:
2178 - Enable/disable VPNv6 AS route server client for this neighbor.
2179 type: str
2180 choices:
2181 - 'enable'
2182 - 'disable'
2183 route_server_client6:
2184 description:
2185 - Enable/disable IPv6 AS route server client.
2186 type: str
2187 choices:
2188 - 'enable'
2189 - 'disable'
2190 rr_attr_allow_change:
2191 description:
2192 - Enable/disable allowing change of route attributes when advertising to IPv4 route reflector clients.
2193 type: str
2194 choices:
2195 - 'enable'
2196 - 'disable'
2197 rr_attr_allow_change_evpn:
2198 description:
2199 - Enable/disable allowing change of route attributes when advertising to L2VPN EVPN route reflector clients.
2200 type: str
2201 choices:
2202 - 'enable'
2203 - 'disable'
2204 rr_attr_allow_change_vpnv4:
2205 description:
2206 - Enable/disable allowing change of route attributes when advertising to VPNv4 route reflector clients.
2207 type: str
2208 choices:
2209 - 'enable'
2210 - 'disable'
2211 rr_attr_allow_change_vpnv6:
2212 description:
2213 - Enable/disable allowing change of route attributes when advertising to VPNv6 route reflector clients.
2214 type: str
2215 choices:
2216 - 'enable'
2217 - 'disable'
2218 rr_attr_allow_change6:
2219 description:
2220 - Enable/disable allowing change of route attributes when advertising to IPv6 route reflector clients.
2221 type: str
2222 choices:
2223 - 'enable'
2224 - 'disable'
2225 send_community:
2226 description:
2227 - IPv4 Send community attribute to neighbor.
2228 type: str
2229 choices:
2230 - 'standard'
2231 - 'extended'
2232 - 'both'
2233 - 'disable'
2234 send_community_evpn:
2235 description:
2236 - Enable/disable sending community attribute to neighbor for L2VPN EVPN address family.
2237 type: str
2238 choices:
2239 - 'standard'
2240 - 'extended'
2241 - 'both'
2242 - 'disable'
2243 send_community_vpnv4:
2244 description:
2245 - Send community attribute to neighbor for VPNv4 address family.
2246 type: str
2247 choices:
2248 - 'standard'
2249 - 'extended'
2250 - 'both'
2251 - 'disable'
2252 send_community_vpnv6:
2253 description:
2254 - Enable/disable sending community attribute to this neighbor for VPNv6 address family.
2255 type: str
2256 choices:
2257 - 'standard'
2258 - 'extended'
2259 - 'both'
2260 - 'disable'
2261 send_community6:
2262 description:
2263 - IPv6 Send community attribute to neighbor.
2264 type: str
2265 choices:
2266 - 'standard'
2267 - 'extended'
2268 - 'both'
2269 - 'disable'
2270 shutdown:
2271 description:
2272 - Enable/disable shutdown this neighbor.
2273 type: str
2274 choices:
2275 - 'enable'
2276 - 'disable'
2277 soft_reconfiguration:
2278 description:
2279 - Enable/disable allow IPv4 inbound soft reconfiguration.
2280 type: str
2281 choices:
2282 - 'enable'
2283 - 'disable'
2284 soft_reconfiguration_evpn:
2285 description:
2286 - Enable/disable L2VPN EVPN inbound soft reconfiguration.
2287 type: str
2288 choices:
2289 - 'enable'
2290 - 'disable'
2291 soft_reconfiguration_vpnv4:
2292 description:
2293 - Enable/disable allow VPNv4 inbound soft reconfiguration.
2294 type: str
2295 choices:
2296 - 'enable'
2297 - 'disable'
2298 soft_reconfiguration_vpnv6:
2299 description:
2300 - Enable/disable VPNv6 inbound soft reconfiguration.
2301 type: str
2302 choices:
2303 - 'enable'
2304 - 'disable'
2305 soft_reconfiguration6:
2306 description:
2307 - Enable/disable allow IPv6 inbound soft reconfiguration.
2308 type: str
2309 choices:
2310 - 'enable'
2311 - 'disable'
2312 stale_route:
2313 description:
2314 - Enable/disable stale route after neighbor down.
2315 type: str
2316 choices:
2317 - 'enable'
2318 - 'disable'
2319 strict_capability_match:
2320 description:
2321 - Enable/disable strict capability matching.
2322 type: str
2323 choices:
2324 - 'enable'
2325 - 'disable'
2326 unsuppress_map:
2327 description:
2328 - IPv4 Route map to selectively unsuppress suppressed routes. Source router.route-map.name.
2329 type: str
2330 unsuppress_map6:
2331 description:
2332 - IPv6 Route map to selectively unsuppress suppressed routes. Source router.route-map.name.
2333 type: str
2334 update_source:
2335 description:
2336 - Interface to use as source IP/IPv6 address of TCP connections. Source system.interface.name.
2337 type: str
2338 weight:
2339 description:
2340 - Neighbor weight.
2341 type: int
2342 neighbor_range:
2343 description:
2344 - BGP neighbor range table.
2345 type: list
2346 elements: dict
2347 suboptions:
2348 id:
2349 description:
2350 - Neighbor range ID. see <a href='#notes'>Notes</a>.
2351 required: true
2352 type: int
2353 max_neighbor_num:
2354 description:
2355 - Maximum number of neighbors.
2356 type: int
2357 neighbor_group:
2358 description:
2359 - Neighbor group name. Source router.bgp.neighbor-group.name.
2360 type: str
2361 prefix:
2362 description:
2363 - Neighbor range prefix.
2364 type: str
2365 neighbor_range6:
2366 description:
2367 - BGP IPv6 neighbor range table.
2368 type: list
2369 elements: dict
2370 suboptions:
2371 id:
2372 description:
2373 - IPv6 neighbor range ID. see <a href='#notes'>Notes</a>.
2374 required: true
2375 type: int
2376 max_neighbor_num:
2377 description:
2378 - Maximum number of neighbors.
2379 type: int
2380 neighbor_group:
2381 description:
2382 - Neighbor group name. Source router.bgp.neighbor-group.name.
2383 type: str
2384 prefix6:
2385 description:
2386 - IPv6 prefix.
2387 type: str
2388 network:
2389 description:
2390 - BGP network table.
2391 type: list
2392 elements: dict
2393 suboptions:
2394 backdoor:
2395 description:
2396 - Enable/disable route as backdoor.
2397 type: str
2398 choices:
2399 - 'enable'
2400 - 'disable'
2401 id:
2402 description:
2403 - ID. see <a href='#notes'>Notes</a>.
2404 required: true
2405 type: int
2406 network_import_check:
2407 description:
2408 - Configure insurance of BGP network route existence in IGP.
2409 type: str
2410 choices:
2411 - 'global'
2412 - 'enable'
2413 - 'disable'
2414 prefix:
2415 description:
2416 - Network prefix.
2417 type: str
2418 prefix_name:
2419 description:
2420 - Name of firewall address or address group. Source firewall.address.name firewall.addrgrp.name.
2421 type: str
2422 route_map:
2423 description:
2424 - Route map to modify generated route. Source router.route-map.name.
2425 type: str
2426 network_import_check:
2427 description:
2428 - Enable/disable ensure BGP network route exists in IGP.
2429 type: str
2430 choices:
2431 - 'enable'
2432 - 'disable'
2433 network6:
2434 description:
2435 - BGP IPv6 network table.
2436 type: list
2437 elements: dict
2438 suboptions:
2439 backdoor:
2440 description:
2441 - Enable/disable route as backdoor.
2442 type: str
2443 choices:
2444 - 'enable'
2445 - 'disable'
2446 id:
2447 description:
2448 - ID. see <a href='#notes'>Notes</a>.
2449 required: true
2450 type: int
2451 network_import_check:
2452 description:
2453 - Configure insurance of BGP network route existence in IGP.
2454 type: str
2455 choices:
2456 - 'global'
2457 - 'enable'
2458 - 'disable'
2459 prefix6:
2460 description:
2461 - Network IPv6 prefix.
2462 type: str
2463 route_map:
2464 description:
2465 - Route map to modify generated route. Source router.route-map.name.
2466 type: str
2467 recursive_inherit_priority:
2468 description:
2469 - Enable/disable priority inheritance for recursive resolution.
2470 type: str
2471 choices:
2472 - 'enable'
2473 - 'disable'
2474 recursive_next_hop:
2475 description:
2476 - Enable/disable recursive resolution of next-hop using BGP route.
2477 type: str
2478 choices:
2479 - 'enable'
2480 - 'disable'
2481 redistribute:
2482 description:
2483 - BGP IPv4 redistribute table.
2484 type: list
2485 elements: dict
2486 suboptions:
2487 name:
2488 description:
2489 - Distribute list entry name.
2490 required: true
2491 type: str
2492 route_map:
2493 description:
2494 - Route map name. Source router.route-map.name.
2495 type: str
2496 status:
2497 description:
2498 - Status.
2499 type: str
2500 choices:
2501 - 'enable'
2502 - 'disable'
2503 redistribute6:
2504 description:
2505 - BGP IPv6 redistribute table.
2506 type: list
2507 elements: dict
2508 suboptions:
2509 name:
2510 description:
2511 - Distribute list entry name.
2512 required: true
2513 type: str
2514 route_map:
2515 description:
2516 - Route map name. Source router.route-map.name.
2517 type: str
2518 status:
2519 description:
2520 - Status.
2521 type: str
2522 choices:
2523 - 'enable'
2524 - 'disable'
2525 router_id:
2526 description:
2527 - Router ID.
2528 type: str
2529 scan_time:
2530 description:
2531 - Background scanner interval (sec), 0 to disable it.
2532 type: int
2533 synchronization:
2534 description:
2535 - Enable/disable only advertise routes from iBGP if routes present in an IGP.
2536 type: str
2537 choices:
2538 - 'enable'
2539 - 'disable'
2540 tag_resolve_mode:
2541 description:
2542 - Configure tag-match mode. Resolves BGP routes with other routes containing the same tag.
2543 type: str
2544 choices:
2545 - 'disable'
2546 - 'preferred'
2547 - 'merge'
2548 - 'merge-all'
2549 vrf:
2550 description:
2551 - BGP VRF leaking table.
2552 type: list
2553 elements: dict
2554 suboptions:
2555 export_rt:
2556 description:
2557 - List of export route target.
2558 type: list
2559 elements: dict
2560 suboptions:
2561 route_target:
2562 description:
2563 - 'Attribute: AA:NN|A.B.C.D:NN.'
2564 required: true
2565 type: str
2566 import_route_map:
2567 description:
2568 - Import route map. Source router.route-map.name.
2569 type: str
2570 import_rt:
2571 description:
2572 - List of import route target.
2573 type: list
2574 elements: dict
2575 suboptions:
2576 route_target:
2577 description:
2578 - 'Attribute: AA:NN|A.B.C.D:NN'
2579 required: true
2580 type: str
2581 leak_target:
2582 description:
2583 - Target VRF table.
2584 type: list
2585 elements: dict
2586 suboptions:
2587 interface:
2588 description:
2589 - Interface which is used to leak routes to target VRF. Source system.interface.name.
2590 type: str
2591 route_map:
2592 description:
2593 - Route map of VRF leaking. Source router.route-map.name.
2594 type: str
2595 vrf:
2596 description:
2597 - Target VRF ID <0-511>.
2598 required: true
2599 type: str
2600 rd:
2601 description:
2602 - 'Route Distinguisher: AA:NN|A.B.C.D:NN.'
2603 type: str
2604 role:
2605 description:
2606 - VRF role.
2607 type: str
2608 choices:
2609 - 'standalone'
2610 - 'ce'
2611 - 'pe'
2612 vrf:
2613 description:
2614 - Origin VRF ID <0-511>.
2615 required: true
2616 type: str
2617 vrf_leak:
2618 description:
2619 - BGP VRF leaking table.
2620 type: list
2621 elements: dict
2622 suboptions:
2623 target:
2624 description:
2625 - Target VRF table.
2626 type: list
2627 elements: dict
2628 suboptions:
2629 interface:
2630 description:
2631 - Interface which is used to leak routes to target VRF. Source system.interface.name.
2632 type: str
2633 route_map:
2634 description:
2635 - Route map of VRF leaking. Source router.route-map.name.
2636 type: str
2637 vrf:
2638 description:
2639 - Target VRF ID (0 - 31).
2640 required: true
2641 type: str
2642 vrf:
2643 description:
2644 - Origin VRF ID (0 - 31).
2645 required: true
2646 type: str
2647 vrf_leak6:
2648 description:
2649 - BGP IPv6 VRF leaking table.
2650 type: list
2651 elements: dict
2652 suboptions:
2653 target:
2654 description:
2655 - Target VRF table.
2656 type: list
2657 elements: dict
2658 suboptions:
2659 interface:
2660 description:
2661 - Interface which is used to leak routes to target VRF. Source system.interface.name.
2662 type: str
2663 route_map:
2664 description:
2665 - Route map of VRF leaking. Source router.route-map.name.
2666 type: str
2667 vrf:
2668 description:
2669 - Target VRF ID (0 - 31).
2670 required: true
2671 type: str
2672 vrf:
2673 description:
2674 - Origin VRF ID (0 - 31).
2675 required: true
2676 type: str
2677 vrf6:
2678 description:
2679 - BGP IPv6 VRF leaking table.
2680 type: list
2681 elements: dict
2682 suboptions:
2683 export_rt:
2684 description:
2685 - List of export route target.
2686 type: list
2687 elements: dict
2688 suboptions:
2689 route_target:
2690 description:
2691 - 'Attribute: AA:NN|A.B.C.D:NN.'
2692 required: true
2693 type: str
2694 import_route_map:
2695 description:
2696 - Import route map. Source router.route-map.name.
2697 type: str
2698 import_rt:
2699 description:
2700 - List of import route target.
2701 type: list
2702 elements: dict
2703 suboptions:
2704 route_target:
2705 description:
2706 - 'Attribute: AA:NN|A.B.C.D:NN'
2707 required: true
2708 type: str
2709 leak_target:
2710 description:
2711 - Target VRF table.
2712 type: list
2713 elements: dict
2714 suboptions:
2715 interface:
2716 description:
2717 - Interface which is used to leak routes to target VRF. Source system.interface.name.
2718 type: str
2719 route_map:
2720 description:
2721 - Route map of VRF leaking. Source router.route-map.name.
2722 type: str
2723 vrf:
2724 description:
2725 - Target VRF ID <0-511>.
2726 required: true
2727 type: str
2728 rd:
2729 description:
2730 - 'Route Distinguisher: AA:NN|A.B.C.D:NN.'
2731 type: str
2732 role:
2733 description:
2734 - VRF role.
2735 type: str
2736 choices:
2737 - 'standalone'
2738 - 'ce'
2739 - 'pe'
2740 vrf:
2741 description:
2742 - Origin VRF ID <0-511>.
2743 required: true
2744 type: str
2745 """
2746
2747 EXAMPLES = """
2748 - name: Configure BGP.
2749 fortinet.fortios.fortios_router_bgp:
2750 vdom: "{{ vdom }}"
2751 router_bgp:
2752 additional_path: "enable"
2753 additional_path_select: "2"
2754 additional_path_select_vpnv4: "2"
2755 additional_path_select_vpnv6: "2"
2756 additional_path_select6: "2"
2757 additional_path_vpnv4: "enable"
2758 additional_path_vpnv6: "enable"
2759 additional_path6: "enable"
2760 admin_distance:
2761 -
2762 distance: "0"
2763 id: "13"
2764 neighbour_prefix: "<your_own_value>"
2765 route_list: "<your_own_value> (source router.access-list.name)"
2766 aggregate_address:
2767 -
2768 as_set: "enable"
2769 id: "18"
2770 prefix: "<your_own_value>"
2771 summary_only: "enable"
2772 aggregate_address6:
2773 -
2774 as_set: "enable"
2775 id: "23"
2776 prefix6: "<your_own_value>"
2777 summary_only: "enable"
2778 always_compare_med: "enable"
2779 as: "<your_own_value>"
2780 bestpath_as_path_ignore: "enable"
2781 bestpath_cmp_confed_aspath: "enable"
2782 bestpath_cmp_routerid: "enable"
2783 bestpath_med_confed: "enable"
2784 bestpath_med_missing_as_worst: "enable"
2785 client_to_client_reflection: "enable"
2786 cluster_id: "<your_own_value>"
2787 confederation_identifier: "0"
2788 confederation_peers:
2789 -
2790 peer: "<your_own_value>"
2791 cross_family_conditional_adv: "enable"
2792 dampening: "enable"
2793 dampening_max_suppress_time: "60"
2794 dampening_reachability_half_life: "15"
2795 dampening_reuse: "750"
2796 dampening_route_map: "<your_own_value> (source router.route-map.name)"
2797 dampening_suppress: "2000"
2798 dampening_unreachability_half_life: "15"
2799 default_local_preference: "100"
2800 deterministic_med: "enable"
2801 distance_external: "20"
2802 distance_internal: "200"
2803 distance_local: "200"
2804 ebgp_multipath: "enable"
2805 enforce_first_as: "enable"
2806 fast_external_failover: "enable"
2807 graceful_end_on_timer: "enable"
2808 graceful_restart: "enable"
2809 graceful_restart_time: "120"
2810 graceful_stalepath_time: "360"
2811 graceful_update_delay: "120"
2812 holdtime_timer: "180"
2813 ibgp_multipath: "enable"
2814 ignore_optional_capability: "enable"
2815 keepalive_timer: "60"
2816 log_neighbour_changes: "enable"
2817 multipath_recursive_distance: "enable"
2818 neighbor:
2819 -
2820 activate: "enable"
2821 activate_evpn: "enable"
2822 activate_vpnv4: "enable"
2823 activate_vpnv6: "enable"
2824 activate6: "enable"
2825 additional_path: "send"
2826 additional_path_vpnv4: "send"
2827 additional_path_vpnv6: "send"
2828 additional_path6: "send"
2829 adv_additional_path: "2"
2830 adv_additional_path_vpnv4: "2"
2831 adv_additional_path_vpnv6: "2"
2832 adv_additional_path6: "2"
2833 advertisement_interval: "30"
2834 allowas_in: "3"
2835 allowas_in_enable: "enable"
2836 allowas_in_enable_evpn: "enable"
2837 allowas_in_enable_vpnv4: "enable"
2838 allowas_in_enable_vpnv6: "enable"
2839 allowas_in_enable6: "enable"
2840 allowas_in_evpn: "3"
2841 allowas_in_vpnv4: "3"
2842 allowas_in_vpnv6: "3"
2843 allowas_in6: "3"
2844 as_override: "enable"
2845 as_override6: "enable"
2846 attribute_unchanged: "as-path"
2847 attribute_unchanged_vpnv4: "as-path"
2848 attribute_unchanged_vpnv6: "as-path"
2849 attribute_unchanged6: "as-path"
2850 auth_options: "<your_own_value> (source router.key-chain.name)"
2851 bfd: "enable"
2852 capability_default_originate: "enable"
2853 capability_default_originate6: "enable"
2854 capability_dynamic: "enable"
2855 capability_graceful_restart: "enable"
2856 capability_graceful_restart_evpn: "enable"
2857 capability_graceful_restart_vpnv4: "enable"
2858 capability_graceful_restart_vpnv6: "enable"
2859 capability_graceful_restart6: "enable"
2860 capability_orf: "none"
2861 capability_orf6: "none"
2862 capability_route_refresh: "enable"
2863 conditional_advertise:
2864 -
2865 advertise_routemap: "<your_own_value> (source router.route-map.name)"
2866 condition_routemap:
2867 -
2868 name: "default_name_112 (source router.route-map.name)"
2869 condition_type: "exist"
2870 conditional_advertise6:
2871 -
2872 advertise_routemap: "<your_own_value> (source router.route-map.name)"
2873 condition_routemap:
2874 -
2875 name: "default_name_117 (source router.route-map.name)"
2876 condition_type: "exist"
2877 connect_timer: "4294967295"
2878 default_originate_routemap: "<your_own_value> (source router.route-map.name)"
2879 default_originate_routemap6: "<your_own_value> (source router.route-map.name)"
2880 description: "<your_own_value>"
2881 distribute_list_in: "<your_own_value> (source router.access-list.name)"
2882 distribute_list_in_vpnv4: "<your_own_value> (source router.access-list.name)"
2883 distribute_list_in_vpnv6: "<your_own_value> (source router.access-list6.name)"
2884 distribute_list_in6: "<your_own_value> (source router.access-list6.name)"
2885 distribute_list_out: "<your_own_value> (source router.access-list.name)"
2886 distribute_list_out_vpnv4: "<your_own_value> (source router.access-list.name)"
2887 distribute_list_out_vpnv6: "<your_own_value> (source router.access-list6.name)"
2888 distribute_list_out6: "<your_own_value> (source router.access-list6.name)"
2889 dont_capability_negotiate: "enable"
2890 ebgp_enforce_multihop: "enable"
2891 ebgp_multihop_ttl: "255"
2892 filter_list_in: "<your_own_value> (source router.aspath-list.name)"
2893 filter_list_in_vpnv4: "<your_own_value> (source router.aspath-list.name)"
2894 filter_list_in_vpnv6: "<your_own_value> (source router.aspath-list.name)"
2895 filter_list_in6: "<your_own_value> (source router.aspath-list.name)"
2896 filter_list_out: "<your_own_value> (source router.aspath-list.name)"
2897 filter_list_out_vpnv4: "<your_own_value> (source router.aspath-list.name)"
2898 filter_list_out_vpnv6: "<your_own_value> (source router.aspath-list.name)"
2899 filter_list_out6: "<your_own_value> (source router.aspath-list.name)"
2900 holdtime_timer: "4294967295"
2901 interface: "<your_own_value> (source system.interface.name)"
2902 ip: "<your_own_value>"
2903 keep_alive_timer: "4294967295"
2904 link_down_failover: "enable"
2905 local_as: "<your_own_value>"
2906 local_as_no_prepend: "enable"
2907 local_as_replace_as: "enable"
2908 maximum_prefix: "0"
2909 maximum_prefix_evpn: "0"
2910 maximum_prefix_threshold: "75"
2911 maximum_prefix_threshold_evpn: "75"
2912 maximum_prefix_threshold_vpnv4: "75"
2913 maximum_prefix_threshold_vpnv6: "75"
2914 maximum_prefix_threshold6: "75"
2915 maximum_prefix_vpnv4: "0"
2916 maximum_prefix_vpnv6: "0"
2917 maximum_prefix_warning_only: "enable"
2918 maximum_prefix_warning_only_evpn: "enable"
2919 maximum_prefix_warning_only_vpnv4: "enable"
2920 maximum_prefix_warning_only_vpnv6: "enable"
2921 maximum_prefix_warning_only6: "enable"
2922 maximum_prefix6: "0"
2923 next_hop_self: "enable"
2924 next_hop_self_rr: "enable"
2925 next_hop_self_rr6: "enable"
2926 next_hop_self_vpnv4: "enable"
2927 next_hop_self_vpnv6: "enable"
2928 next_hop_self6: "enable"
2929 override_capability: "enable"
2930 passive: "enable"
2931 password: "<your_own_value>"
2932 prefix_list_in: "<your_own_value> (source router.prefix-list.name)"
2933 prefix_list_in_vpnv4: "<your_own_value> (source router.prefix-list.name)"
2934 prefix_list_in_vpnv6: "<your_own_value> (source router.prefix-list6.name)"
2935 prefix_list_in6: "<your_own_value> (source router.prefix-list6.name)"
2936 prefix_list_out: "<your_own_value> (source router.prefix-list.name)"
2937 prefix_list_out_vpnv4: "<your_own_value> (source router.prefix-list.name)"
2938 prefix_list_out_vpnv6: "<your_own_value> (source router.prefix-list6.name)"
2939 prefix_list_out6: "<your_own_value> (source router.prefix-list6.name)"
2940 remote_as: "<your_own_value>"
2941 remove_private_as: "enable"
2942 remove_private_as_evpn: "enable"
2943 remove_private_as_vpnv4: "enable"
2944 remove_private_as_vpnv6: "enable"
2945 remove_private_as6: "enable"
2946 restart_time: "0"
2947 retain_stale_time: "0"
2948 route_map_in: "<your_own_value> (source router.route-map.name)"
2949 route_map_in_evpn: "<your_own_value> (source router.route-map.name)"
2950 route_map_in_vpnv4: "<your_own_value> (source router.route-map.name)"
2951 route_map_in_vpnv6: "<your_own_value> (source router.route-map.name)"
2952 route_map_in6: "<your_own_value> (source router.route-map.name)"
2953 route_map_out: "<your_own_value> (source router.route-map.name)"
2954 route_map_out_evpn: "<your_own_value> (source router.route-map.name)"
2955 route_map_out_preferable: "<your_own_value> (source router.route-map.name)"
2956 route_map_out_vpnv4: "<your_own_value> (source router.route-map.name)"
2957 route_map_out_vpnv4_preferable: "<your_own_value> (source router.route-map.name)"
2958 route_map_out_vpnv6: "<your_own_value> (source router.route-map.name)"
2959 route_map_out_vpnv6_preferable: "<your_own_value> (source router.route-map.name)"
2960 route_map_out6: "<your_own_value> (source router.route-map.name)"
2961 route_map_out6_preferable: "<your_own_value> (source router.route-map.name)"
2962 route_reflector_client: "enable"
2963 route_reflector_client_evpn: "enable"
2964 route_reflector_client_vpnv4: "enable"
2965 route_reflector_client_vpnv6: "enable"
2966 route_reflector_client6: "enable"
2967 route_server_client: "enable"
2968 route_server_client_evpn: "enable"
2969 route_server_client_vpnv4: "enable"
2970 route_server_client_vpnv6: "enable"
2971 route_server_client6: "enable"
2972 rr_attr_allow_change: "enable"
2973 rr_attr_allow_change_evpn: "enable"
2974 rr_attr_allow_change_vpnv4: "enable"
2975 rr_attr_allow_change_vpnv6: "enable"
2976 rr_attr_allow_change6: "enable"
2977 send_community: "standard"
2978 send_community_evpn: "standard"
2979 send_community_vpnv4: "standard"
2980 send_community_vpnv6: "standard"
2981 send_community6: "standard"
2982 shutdown: "enable"
2983 soft_reconfiguration: "enable"
2984 soft_reconfiguration_evpn: "enable"
2985 soft_reconfiguration_vpnv4: "enable"
2986 soft_reconfiguration_vpnv6: "enable"
2987 soft_reconfiguration6: "enable"
2988 stale_route: "enable"
2989 strict_capability_match: "enable"
2990 unsuppress_map: "<your_own_value> (source router.route-map.name)"
2991 unsuppress_map6: "<your_own_value> (source router.route-map.name)"
2992 update_source: "<your_own_value> (source system.interface.name)"
2993 weight: "4294967295"
2994 neighbor_group:
2995 -
2996 activate: "enable"
2997 activate_evpn: "enable"
2998 activate_vpnv4: "enable"
2999 activate_vpnv6: "enable"
3000 activate6: "enable"
3001 additional_path: "send"
3002 additional_path_vpnv4: "send"
3003 additional_path_vpnv6: "send"
3004 additional_path6: "send"
3005 adv_additional_path: "2"
3006 adv_additional_path_vpnv4: "2"
3007 adv_additional_path_vpnv6: "2"
3008 adv_additional_path6: "2"
3009 advertisement_interval: "30"
3010 allowas_in: "3"
3011 allowas_in_enable: "enable"
3012 allowas_in_enable_evpn: "enable"
3013 allowas_in_enable_vpnv4: "enable"
3014 allowas_in_enable_vpnv6: "enable"
3015 allowas_in_enable6: "enable"
3016 allowas_in_evpn: "3"
3017 allowas_in_vpnv4: "3"
3018 allowas_in_vpnv6: "3"
3019 allowas_in6: "3"
3020 as_override: "enable"
3021 as_override6: "enable"
3022 attribute_unchanged: "as-path"
3023 attribute_unchanged_vpnv4: "as-path"
3024 attribute_unchanged_vpnv6: "as-path"
3025 attribute_unchanged6: "as-path"
3026 auth_options: "<your_own_value> (source router.key-chain.name)"
3027 bfd: "enable"
3028 capability_default_originate: "enable"
3029 capability_default_originate6: "enable"
3030 capability_dynamic: "enable"
3031 capability_graceful_restart: "enable"
3032 capability_graceful_restart_evpn: "enable"
3033 capability_graceful_restart_vpnv4: "enable"
3034 capability_graceful_restart_vpnv6: "enable"
3035 capability_graceful_restart6: "enable"
3036 capability_orf: "none"
3037 capability_orf6: "none"
3038 capability_route_refresh: "enable"
3039 connect_timer: "4294967295"
3040 default_originate_routemap: "<your_own_value> (source router.route-map.name)"
3041 default_originate_routemap6: "<your_own_value> (source router.route-map.name)"
3042 description: "<your_own_value>"
3043 distribute_list_in: "<your_own_value> (source router.access-list.name)"
3044 distribute_list_in_vpnv4: "<your_own_value> (source router.access-list.name)"
3045 distribute_list_in_vpnv6: "<your_own_value> (source router.access-list6.name)"
3046 distribute_list_in6: "<your_own_value> (source router.access-list6.name)"
3047 distribute_list_out: "<your_own_value> (source router.access-list.name)"
3048 distribute_list_out_vpnv4: "<your_own_value> (source router.access-list.name)"
3049 distribute_list_out_vpnv6: "<your_own_value> (source router.access-list6.name)"
3050 distribute_list_out6: "<your_own_value> (source router.access-list6.name)"
3051 dont_capability_negotiate: "enable"
3052 ebgp_enforce_multihop: "enable"
3053 ebgp_multihop_ttl: "255"
3054 filter_list_in: "<your_own_value> (source router.aspath-list.name)"
3055 filter_list_in_vpnv4: "<your_own_value> (source router.aspath-list.name)"
3056 filter_list_in_vpnv6: "<your_own_value> (source router.aspath-list.name)"
3057 filter_list_in6: "<your_own_value> (source router.aspath-list.name)"
3058 filter_list_out: "<your_own_value> (source router.aspath-list.name)"
3059 filter_list_out_vpnv4: "<your_own_value> (source router.aspath-list.name)"
3060 filter_list_out_vpnv6: "<your_own_value> (source router.aspath-list.name)"
3061 filter_list_out6: "<your_own_value> (source router.aspath-list.name)"
3062 holdtime_timer: "4294967295"
3063 interface: "<your_own_value> (source system.interface.name)"
3064 keep_alive_timer: "4294967295"
3065 link_down_failover: "enable"
3066 local_as: "<your_own_value>"
3067 local_as_no_prepend: "enable"
3068 local_as_replace_as: "enable"
3069 maximum_prefix: "0"
3070 maximum_prefix_evpn: "0"
3071 maximum_prefix_threshold: "75"
3072 maximum_prefix_threshold_evpn: "75"
3073 maximum_prefix_threshold_vpnv4: "75"
3074 maximum_prefix_threshold_vpnv6: "75"
3075 maximum_prefix_threshold6: "75"
3076 maximum_prefix_vpnv4: "0"
3077 maximum_prefix_vpnv6: "0"
3078 maximum_prefix_warning_only: "enable"
3079 maximum_prefix_warning_only_evpn: "enable"
3080 maximum_prefix_warning_only_vpnv4: "enable"
3081 maximum_prefix_warning_only_vpnv6: "enable"
3082 maximum_prefix_warning_only6: "enable"
3083 maximum_prefix6: "0"
3084 name: "default_name_325"
3085 next_hop_self: "enable"
3086 next_hop_self_rr: "enable"
3087 next_hop_self_rr6: "enable"
3088 next_hop_self_vpnv4: "enable"
3089 next_hop_self_vpnv6: "enable"
3090 next_hop_self6: "enable"
3091 override_capability: "enable"
3092 passive: "enable"
3093 password: "<your_own_value>"
3094 prefix_list_in: "<your_own_value> (source router.prefix-list.name)"
3095 prefix_list_in_vpnv4: "<your_own_value> (source router.prefix-list.name)"
3096 prefix_list_in_vpnv6: "<your_own_value> (source router.prefix-list6.name)"
3097 prefix_list_in6: "<your_own_value> (source router.prefix-list6.name)"
3098 prefix_list_out: "<your_own_value> (source router.prefix-list.name)"
3099 prefix_list_out_vpnv4: "<your_own_value> (source router.prefix-list.name)"
3100 prefix_list_out_vpnv6: "<your_own_value> (source router.prefix-list6.name)"
3101 prefix_list_out6: "<your_own_value> (source router.prefix-list6.name)"
3102 remote_as: "<your_own_value>"
3103 remote_as_filter: "<your_own_value> (source router.aspath-list.name)"
3104 remove_private_as: "enable"
3105 remove_private_as_evpn: "enable"
3106 remove_private_as_vpnv4: "enable"
3107 remove_private_as_vpnv6: "enable"
3108 remove_private_as6: "enable"
3109 restart_time: "0"
3110 retain_stale_time: "0"
3111 route_map_in: "<your_own_value> (source router.route-map.name)"
3112 route_map_in_evpn: "<your_own_value> (source router.route-map.name)"
3113 route_map_in_vpnv4: "<your_own_value> (source router.route-map.name)"
3114 route_map_in_vpnv6: "<your_own_value> (source router.route-map.name)"
3115 route_map_in6: "<your_own_value> (source router.route-map.name)"
3116 route_map_out: "<your_own_value> (source router.route-map.name)"
3117 route_map_out_evpn: "<your_own_value> (source router.route-map.name)"
3118 route_map_out_preferable: "<your_own_value> (source router.route-map.name)"
3119 route_map_out_vpnv4: "<your_own_value> (source router.route-map.name)"
3120 route_map_out_vpnv4_preferable: "<your_own_value> (source router.route-map.name)"
3121 route_map_out_vpnv6: "<your_own_value> (source router.route-map.name)"
3122 route_map_out_vpnv6_preferable: "<your_own_value> (source router.route-map.name)"
3123 route_map_out6: "<your_own_value> (source router.route-map.name)"
3124 route_map_out6_preferable: "<your_own_value> (source router.route-map.name)"
3125 route_reflector_client: "enable"
3126 route_reflector_client_evpn: "enable"
3127 route_reflector_client_vpnv4: "enable"
3128 route_reflector_client_vpnv6: "enable"
3129 route_reflector_client6: "enable"
3130 route_server_client: "enable"
3131 route_server_client_evpn: "enable"
3132 route_server_client_vpnv4: "enable"
3133 route_server_client_vpnv6: "enable"
3134 route_server_client6: "enable"
3135 rr_attr_allow_change: "enable"
3136 rr_attr_allow_change_evpn: "enable"
3137 rr_attr_allow_change_vpnv4: "enable"
3138 rr_attr_allow_change_vpnv6: "enable"
3139 rr_attr_allow_change6: "enable"
3140 send_community: "standard"
3141 send_community_evpn: "standard"
3142 send_community_vpnv4: "standard"
3143 send_community_vpnv6: "standard"
3144 send_community6: "standard"
3145 shutdown: "enable"
3146 soft_reconfiguration: "enable"
3147 soft_reconfiguration_evpn: "enable"
3148 soft_reconfiguration_vpnv4: "enable"
3149 soft_reconfiguration_vpnv6: "enable"
3150 soft_reconfiguration6: "enable"
3151 stale_route: "enable"
3152 strict_capability_match: "enable"
3153 unsuppress_map: "<your_own_value> (source router.route-map.name)"
3154 unsuppress_map6: "<your_own_value> (source router.route-map.name)"
3155 update_source: "<your_own_value> (source system.interface.name)"
3156 weight: "4294967295"
3157 neighbor_range:
3158 -
3159 id: "399"
3160 max_neighbor_num: "0"
3161 neighbor_group: "<your_own_value> (source router.bgp.neighbor-group.name)"
3162 prefix: "<your_own_value>"
3163 neighbor_range6:
3164 -
3165 id: "404"
3166 max_neighbor_num: "0"
3167 neighbor_group: "<your_own_value> (source router.bgp.neighbor-group.name)"
3168 prefix6: "<your_own_value>"
3169 network:
3170 -
3171 backdoor: "enable"
3172 id: "410"
3173 network_import_check: "global"
3174 prefix: "<your_own_value>"
3175 prefix_name: "<your_own_value> (source firewall.address.name firewall.addrgrp.name)"
3176 route_map: "<your_own_value> (source router.route-map.name)"
3177 network_import_check: "enable"
3178 network6:
3179 -
3180 backdoor: "enable"
3181 id: "418"
3182 network_import_check: "global"
3183 prefix6: "<your_own_value>"
3184 route_map: "<your_own_value> (source router.route-map.name)"
3185 recursive_inherit_priority: "enable"
3186 recursive_next_hop: "enable"
3187 redistribute:
3188 -
3189 name: "default_name_425"
3190 route_map: "<your_own_value> (source router.route-map.name)"
3191 status: "enable"
3192 redistribute6:
3193 -
3194 name: "default_name_429"
3195 route_map: "<your_own_value> (source router.route-map.name)"
3196 status: "enable"
3197 router_id: "<your_own_value>"
3198 scan_time: "60"
3199 synchronization: "enable"
3200 tag_resolve_mode: "disable"
3201 vrf:
3202 -
3203 export_rt:
3204 -
3205 route_target: "<your_own_value>"
3206 import_route_map: "<your_own_value> (source router.route-map.name)"
3207 import_rt:
3208 -
3209 route_target: "<your_own_value>"
3210 leak_target:
3211 -
3212 interface: "<your_own_value> (source system.interface.name)"
3213 route_map: "<your_own_value> (source router.route-map.name)"
3214 vrf: "<your_own_value>"
3215 rd: "<your_own_value>"
3216 role: "standalone"
3217 vrf: "<your_own_value>"
3218 vrf_leak:
3219 -
3220 target:
3221 -
3222 interface: "<your_own_value> (source system.interface.name)"
3223 route_map: "<your_own_value> (source router.route-map.name)"
3224 vrf: "<your_own_value>"
3225 vrf: "<your_own_value>"
3226 vrf_leak6:
3227 -
3228 target:
3229 -
3230 interface: "<your_own_value> (source system.interface.name)"
3231 route_map: "<your_own_value> (source router.route-map.name)"
3232 vrf: "<your_own_value>"
3233 vrf: "<your_own_value>"
3234 vrf6:
3235 -
3236 export_rt:
3237 -
3238 route_target: "<your_own_value>"
3239 import_route_map: "<your_own_value> (source router.route-map.name)"
3240 import_rt:
3241 -
3242 route_target: "<your_own_value>"
3243 leak_target:
3244 -
3245 interface: "<your_own_value> (source system.interface.name)"
3246 route_map: "<your_own_value> (source router.route-map.name)"
3247 vrf: "<your_own_value>"
3248 rd: "<your_own_value>"
3249 role: "standalone"
3250 vrf: "<your_own_value>"
3251 """
3252
3253 RETURN = """
3254 build:
3255 description: Build number of the fortigate image
3256 returned: always
3257 type: str
3258 sample: '1547'
3259 http_method:
3260 description: Last method used to provision the content into FortiGate
3261 returned: always
3262 type: str
3263 sample: 'PUT'
3264 http_status:
3265 description: Last result given by FortiGate on last operation applied
3266 returned: always
3267 type: str
3268 sample: "200"
3269 mkey:
3270 description: Master key (id) used in the last call to FortiGate
3271 returned: success
3272 type: str
3273 sample: "id"
3274 name:
3275 description: Name of the table used to fulfill the request
3276 returned: always
3277 type: str
3278 sample: "urlfilter"
3279 path:
3280 description: Path of the table used to fulfill the request
3281 returned: always
3282 type: str
3283 sample: "webfilter"
3284 revision:
3285 description: Internal revision number
3286 returned: always
3287 type: str
3288 sample: "17.0.2.10658"
3289 serial:
3290 description: Serial number of the unit
3291 returned: always
3292 type: str
3293 sample: "FGVMEVYYQT3AB5352"
3294 status:
3295 description: Indication of the operation's result
3296 returned: always
3297 type: str
3298 sample: "success"
3299 vdom:
3300 description: Virtual domain used
3301 returned: always
3302 type: str
3303 sample: "root"
3304 version:
3305 description: Version of the FortiGate
3306 returned: always
3307 type: str
3308 sample: "v5.6.3"
3309 """
3310 from ansible.module_utils.basic import AnsibleModule
3311 from ansible.module_utils.connection import Connection
3312 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
3313 FortiOSHandler,
3314 )
3315 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
3316 check_legacy_fortiosapi,
3317 )
3318 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
3319 schema_to_module_spec,
3320 )
3321 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import (
3322 check_schema_versioning,
3323 )
3324 from ansible_collections.fortinet.fortios.plugins.module_utils.fortimanager.common import (
3325 FAIL_SOCKET_MSG,
3326 )
3327 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.data_post_processor import (
3328 remove_invalid_fields,
3329 )
3330 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
3331 is_same_comparison,
3332 )
3333 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
3334 serialize,
3335 )
3336 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
3337 find_current_values,
3338 )
3339 from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.comparison import (
3340 unify_data_format,
3341 )
3342
3343
3344 def filter_router_bgp_data(json):
3345 option_list = [
3346 "additional_path",
3347 "additional_path_select",
3348 "additional_path_select_vpnv4",
3349 "additional_path_select_vpnv6",
3350 "additional_path_select6",
3351 "additional_path_vpnv4",
3352 "additional_path_vpnv6",
3353 "additional_path6",
3354 "admin_distance",
3355 "aggregate_address",
3356 "aggregate_address6",
3357 "always_compare_med",
3358 "as",
3359 "bestpath_as_path_ignore",
3360 "bestpath_cmp_confed_aspath",
3361 "bestpath_cmp_routerid",
3362 "bestpath_med_confed",
3363 "bestpath_med_missing_as_worst",
3364 "client_to_client_reflection",
3365 "cluster_id",
3366 "confederation_identifier",
3367 "confederation_peers",
3368 "cross_family_conditional_adv",
3369 "dampening",
3370 "dampening_max_suppress_time",
3371 "dampening_reachability_half_life",
3372 "dampening_reuse",
3373 "dampening_route_map",
3374 "dampening_suppress",
3375 "dampening_unreachability_half_life",
3376 "default_local_preference",
3377 "deterministic_med",
3378 "distance_external",
3379 "distance_internal",
3380 "distance_local",
3381 "ebgp_multipath",
3382 "enforce_first_as",
3383 "fast_external_failover",
3384 "graceful_end_on_timer",
3385 "graceful_restart",
3386 "graceful_restart_time",
3387 "graceful_stalepath_time",
3388 "graceful_update_delay",
3389 "holdtime_timer",
3390 "ibgp_multipath",
3391 "ignore_optional_capability",
3392 "keepalive_timer",
3393 "log_neighbour_changes",
3394 "multipath_recursive_distance",
3395 "neighbor",
3396 "neighbor_group",
3397 "neighbor_range",
3398 "neighbor_range6",
3399 "network",
3400 "network_import_check",
3401 "network6",
3402 "recursive_inherit_priority",
3403 "recursive_next_hop",
3404 "redistribute",
3405 "redistribute6",
3406 "router_id",
3407 "scan_time",
3408 "synchronization",
3409 "tag_resolve_mode",
3410 "vrf",
3411 "vrf_leak",
3412 "vrf_leak6",
3413 "vrf6",
3414 ]
3415
3416 json = remove_invalid_fields(json)
3417 dictionary = {}
3418
3419 for attribute in option_list:
3420 if attribute in json and json[attribute] is not None:
3421 dictionary[attribute] = json[attribute]
3422
3423 return dictionary
3424
3425
3426 def flatten_single_path(data, path, index):
3427 if (
3428 not data
3429 or index == len(path)
3430 or path[index] not in data
3431 or (not data[path[index]] and not isinstance(data[path[index]], list))
3432 ):
3433 return
3434
3435 if index == len(path) - 1:
3436 data[path[index]] = " ".join(str(elem) for elem in data[path[index]])
3437 if len(data[path[index]]) == 0:
3438 data[path[index]] = None
3439 elif isinstance(data[path[index]], list):
3440 for value in data[path[index]]:
3441 flatten_single_path(value, path, index + 1)
3442 else:
3443 flatten_single_path(data[path[index]], path, index + 1)
3444
3445
3446 def flatten_multilists_attributes(data):
3447 multilist_attrs = [
3448 ["neighbor", "attribute_unchanged"],
3449 ["neighbor", "attribute_unchanged6"],
3450 ["neighbor", "attribute_unchanged_vpnv4"],
3451 ["neighbor", "attribute_unchanged_vpnv6"],
3452 ["neighbor_group", "attribute_unchanged"],
3453 ["neighbor_group", "attribute_unchanged6"],
3454 ["neighbor_group", "attribute_unchanged_vpnv4"],
3455 ["neighbor_group", "attribute_unchanged_vpnv6"],
3456 ]
3457
3458 for attr in multilist_attrs:
3459 flatten_single_path(data, attr, 0)
3460
3461 return data
3462
3463
3464 def underscore_to_hyphen(data):
3465 new_data = None
3466 if isinstance(data, list):
3467 new_data = []
3468 for i, elem in enumerate(data):
3469 new_data.append(underscore_to_hyphen(elem))
3470 elif isinstance(data, dict):
3471 new_data = {}
3472 for k, v in data.items():
3473 new_data[k.replace("_", "-")] = underscore_to_hyphen(v)
3474 else:
3475 return data
3476 return new_data
3477
3478
3479 def router_bgp(data, fos, check_mode=False):
3480
3481 state = None
3482 vdom = data["vdom"]
3483 parameters = None
3484 state = data.get("state", None)
3485 router_bgp_data = data["router_bgp"]
3486
3487 filtered_data = filter_router_bgp_data(router_bgp_data)
3488 filtered_data = flatten_multilists_attributes(filtered_data)
3489 converted_data = underscore_to_hyphen(filtered_data)
3490
3491 # check_mode starts from here
3492 if check_mode:
3493 diff = {
3494 "before": "",
3495 "after": filtered_data,
3496 }
3497 mkeyname = fos.get_mkeyname(None, None)
3498 mkey = fos.get_mkey("router", "bgp", filtered_data, vdom=vdom)
3499 current_data = fos.get(
3500 "router", "bgp", vdom=vdom, mkey=mkey, parameters=parameters
3501 )
3502 is_existed = (
3503 current_data
3504 and current_data.get("http_status") == 200
3505 and (
3506 mkeyname
3507 and isinstance(current_data.get("results"), list)
3508 and len(current_data["results"]) > 0
3509 or not mkeyname
3510 and current_data["results"] # global object response
3511 )
3512 )
3513
3514 # 2. if it exists and the state is 'present' then compare current settings with desired
3515 if state == "present" or state is True or state is None:
3516 # for non global modules, mkeyname must exist and it's a new module when mkey is None
3517 if mkeyname is not None and mkey is None:
3518 return False, True, filtered_data, diff
3519
3520 # if mkey exists then compare each other
3521 # record exits and they're matched or not
3522 copied_filtered_data = filtered_data.copy()
3523 copied_filtered_data.pop(mkeyname, None)
3524 unified_filtered_data = unify_data_format(copied_filtered_data)
3525
3526 current_data_results = current_data.get("results", {})
3527 current_config = (
3528 current_data_results[0]
3529 if mkeyname
3530 and isinstance(current_data_results, list)
3531 and len(current_data_results) > 0
3532 else current_data_results
3533 )
3534 if is_existed:
3535 unified_current_values = find_current_values(
3536 unified_filtered_data,
3537 unify_data_format(current_config),
3538 )
3539
3540 is_same = is_same_comparison(
3541 serialize(unified_current_values), serialize(unified_filtered_data)
3542 )
3543
3544 return (
3545 False,
3546 not is_same,
3547 filtered_data,
3548 {"before": unified_current_values, "after": unified_filtered_data},
3549 )
3550
3551 # record does not exist
3552 return False, True, filtered_data, diff
3553
3554 if state == "absent":
3555 if mkey is None:
3556 return (
3557 False,
3558 False,
3559 filtered_data,
3560 {"before": current_data["results"][0], "after": ""},
3561 )
3562
3563 if is_existed:
3564 return (
3565 False,
3566 True,
3567 filtered_data,
3568 {"before": current_data["results"][0], "after": ""},
3569 )
3570 return False, False, filtered_data, {}
3571
3572 return True, False, {"reason: ": "Must provide state parameter"}, {}
3573 # pass post processed data to member operations
3574 # no need to do underscore_to_hyphen since do_member_operation handles it by itself
3575 data_copy = data.copy()
3576 data_copy["router_bgp"] = filtered_data
3577 fos.do_member_operation(
3578 "router",
3579 "bgp",
3580 data_copy,
3581 )
3582
3583 return fos.set(
3584 "router", "bgp", data=converted_data, vdom=vdom, parameters=parameters
3585 )
3586
3587
3588 def is_successful_status(resp):
3589 return (
3590 "status" in resp
3591 and resp["status"] == "success"
3592 or "http_status" in resp
3593 and resp["http_status"] == 200
3594 or "http_method" in resp
3595 and resp["http_method"] == "DELETE"
3596 and resp["http_status"] == 404
3597 )
3598
3599
3600 def fortios_router(data, fos, check_mode):
3601
3602 if data["router_bgp"]:
3603 resp = router_bgp(data, fos, check_mode)
3604 else:
3605 fos._module.fail_json(msg="missing task body: %s" % ("router_bgp"))
3606 if isinstance(resp, tuple) and len(resp) == 4:
3607 return resp
3608 return (
3609 not is_successful_status(resp),
3610 is_successful_status(resp)
3611 and (resp["revision_changed"] if "revision_changed" in resp else True),
3612 resp,
3613 {},
3614 )
3615
3616
3617 versioned_schema = {
3618 "v_range": [["v6.0.0", ""]],
3619 "type": "dict",
3620 "children": {
3621 "as": {"v_range": [["v6.0.0", ""]], "type": "string"},
3622 "router_id": {"v_range": [["v6.0.0", ""]], "type": "string"},
3623 "keepalive_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3624 "holdtime_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3625 "always_compare_med": {
3626 "v_range": [["v6.0.0", ""]],
3627 "type": "string",
3628 "options": [{"value": "enable"}, {"value": "disable"}],
3629 },
3630 "bestpath_as_path_ignore": {
3631 "v_range": [["v6.0.0", ""]],
3632 "type": "string",
3633 "options": [{"value": "enable"}, {"value": "disable"}],
3634 },
3635 "bestpath_cmp_confed_aspath": {
3636 "v_range": [["v6.0.0", ""]],
3637 "type": "string",
3638 "options": [{"value": "enable"}, {"value": "disable"}],
3639 },
3640 "bestpath_cmp_routerid": {
3641 "v_range": [["v6.0.0", ""]],
3642 "type": "string",
3643 "options": [{"value": "enable"}, {"value": "disable"}],
3644 },
3645 "bestpath_med_confed": {
3646 "v_range": [["v6.0.0", ""]],
3647 "type": "string",
3648 "options": [{"value": "enable"}, {"value": "disable"}],
3649 },
3650 "bestpath_med_missing_as_worst": {
3651 "v_range": [["v6.0.0", ""]],
3652 "type": "string",
3653 "options": [{"value": "enable"}, {"value": "disable"}],
3654 },
3655 "client_to_client_reflection": {
3656 "v_range": [["v6.0.0", ""]],
3657 "type": "string",
3658 "options": [{"value": "enable"}, {"value": "disable"}],
3659 },
3660 "dampening": {
3661 "v_range": [["v6.0.0", ""]],
3662 "type": "string",
3663 "options": [{"value": "enable"}, {"value": "disable"}],
3664 },
3665 "deterministic_med": {
3666 "v_range": [["v6.0.0", ""]],
3667 "type": "string",
3668 "options": [{"value": "enable"}, {"value": "disable"}],
3669 },
3670 "ebgp_multipath": {
3671 "v_range": [["v6.0.0", ""]],
3672 "type": "string",
3673 "options": [{"value": "enable"}, {"value": "disable"}],
3674 },
3675 "ibgp_multipath": {
3676 "v_range": [["v6.0.0", ""]],
3677 "type": "string",
3678 "options": [{"value": "enable"}, {"value": "disable"}],
3679 },
3680 "enforce_first_as": {
3681 "v_range": [["v6.0.0", ""]],
3682 "type": "string",
3683 "options": [{"value": "enable"}, {"value": "disable"}],
3684 },
3685 "fast_external_failover": {
3686 "v_range": [["v6.0.0", ""]],
3687 "type": "string",
3688 "options": [{"value": "enable"}, {"value": "disable"}],
3689 },
3690 "log_neighbour_changes": {
3691 "v_range": [["v6.0.0", ""]],
3692 "type": "string",
3693 "options": [{"value": "enable"}, {"value": "disable"}],
3694 },
3695 "network_import_check": {
3696 "v_range": [["v6.0.0", ""]],
3697 "type": "string",
3698 "options": [{"value": "enable"}, {"value": "disable"}],
3699 },
3700 "ignore_optional_capability": {
3701 "v_range": [["v6.0.0", ""]],
3702 "type": "string",
3703 "options": [{"value": "enable"}, {"value": "disable"}],
3704 },
3705 "additional_path": {
3706 "v_range": [["v6.2.0", ""]],
3707 "type": "string",
3708 "options": [{"value": "enable"}, {"value": "disable"}],
3709 },
3710 "additional_path6": {
3711 "v_range": [["v6.2.0", ""]],
3712 "type": "string",
3713 "options": [{"value": "enable"}, {"value": "disable"}],
3714 },
3715 "additional_path_vpnv4": {
3716 "v_range": [["v7.2.0", ""]],
3717 "type": "string",
3718 "options": [{"value": "enable"}, {"value": "disable"}],
3719 },
3720 "additional_path_vpnv6": {
3721 "v_range": [["v7.4.2", ""]],
3722 "type": "string",
3723 "options": [{"value": "enable"}, {"value": "disable"}],
3724 },
3725 "multipath_recursive_distance": {
3726 "v_range": [["v6.4.0", "v6.4.0"], ["v6.4.4", ""]],
3727 "type": "string",
3728 "options": [{"value": "enable"}, {"value": "disable"}],
3729 },
3730 "recursive_next_hop": {
3731 "v_range": [["v7.0.0", ""]],
3732 "type": "string",
3733 "options": [{"value": "enable"}, {"value": "disable"}],
3734 },
3735 "recursive_inherit_priority": {
3736 "v_range": [["v7.2.1", ""]],
3737 "type": "string",
3738 "options": [{"value": "enable"}, {"value": "disable"}],
3739 },
3740 "tag_resolve_mode": {
3741 "v_range": [["v7.0.4", ""]],
3742 "type": "string",
3743 "options": [
3744 {"value": "disable"},
3745 {"value": "preferred"},
3746 {"value": "merge"},
3747 {"value": "merge-all", "v_range": [["v7.6.0", ""]]},
3748 ],
3749 },
3750 "cluster_id": {"v_range": [["v6.0.0", ""]], "type": "string"},
3751 "confederation_identifier": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3752 "confederation_peers": {
3753 "type": "list",
3754 "elements": "dict",
3755 "children": {
3756 "peer": {
3757 "v_range": [["v6.0.0", ""]],
3758 "type": "string",
3759 "required": True,
3760 }
3761 },
3762 "v_range": [["v6.0.0", ""]],
3763 },
3764 "dampening_route_map": {"v_range": [["v6.0.0", ""]], "type": "string"},
3765 "dampening_reachability_half_life": {
3766 "v_range": [["v6.0.0", ""]],
3767 "type": "integer",
3768 },
3769 "dampening_reuse": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3770 "dampening_suppress": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3771 "dampening_max_suppress_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3772 "dampening_unreachability_half_life": {
3773 "v_range": [["v6.0.0", ""]],
3774 "type": "integer",
3775 },
3776 "default_local_preference": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3777 "scan_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3778 "distance_external": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3779 "distance_internal": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3780 "distance_local": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3781 "synchronization": {
3782 "v_range": [["v6.0.0", ""]],
3783 "type": "string",
3784 "options": [{"value": "enable"}, {"value": "disable"}],
3785 },
3786 "graceful_restart": {
3787 "v_range": [["v6.0.0", ""]],
3788 "type": "string",
3789 "options": [{"value": "enable"}, {"value": "disable"}],
3790 },
3791 "graceful_restart_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3792 "graceful_stalepath_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3793 "graceful_update_delay": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3794 "graceful_end_on_timer": {
3795 "v_range": [["v6.0.0", ""]],
3796 "type": "string",
3797 "options": [{"value": "enable"}, {"value": "disable"}],
3798 },
3799 "additional_path_select": {"v_range": [["v6.2.0", ""]], "type": "integer"},
3800 "additional_path_select6": {"v_range": [["v6.2.0", ""]], "type": "integer"},
3801 "additional_path_select_vpnv4": {
3802 "v_range": [["v7.2.0", ""]],
3803 "type": "integer",
3804 },
3805 "additional_path_select_vpnv6": {
3806 "v_range": [["v7.4.2", ""]],
3807 "type": "integer",
3808 },
3809 "cross_family_conditional_adv": {
3810 "v_range": [["v7.4.0", ""]],
3811 "type": "string",
3812 "options": [{"value": "enable"}, {"value": "disable"}],
3813 },
3814 "aggregate_address": {
3815 "type": "list",
3816 "elements": "dict",
3817 "children": {
3818 "id": {
3819 "v_range": [["v6.0.0", ""]],
3820 "type": "integer",
3821 "required": True,
3822 },
3823 "prefix": {"v_range": [["v6.0.0", ""]], "type": "string"},
3824 "as_set": {
3825 "v_range": [["v6.0.0", ""]],
3826 "type": "string",
3827 "options": [{"value": "enable"}, {"value": "disable"}],
3828 },
3829 "summary_only": {
3830 "v_range": [["v6.0.0", ""]],
3831 "type": "string",
3832 "options": [{"value": "enable"}, {"value": "disable"}],
3833 },
3834 },
3835 "v_range": [["v6.0.0", ""]],
3836 },
3837 "aggregate_address6": {
3838 "type": "list",
3839 "elements": "dict",
3840 "children": {
3841 "id": {
3842 "v_range": [["v6.0.0", ""]],
3843 "type": "integer",
3844 "required": True,
3845 },
3846 "prefix6": {"v_range": [["v6.0.0", ""]], "type": "string"},
3847 "as_set": {
3848 "v_range": [["v6.0.0", ""]],
3849 "type": "string",
3850 "options": [{"value": "enable"}, {"value": "disable"}],
3851 },
3852 "summary_only": {
3853 "v_range": [["v6.0.0", ""]],
3854 "type": "string",
3855 "options": [{"value": "enable"}, {"value": "disable"}],
3856 },
3857 },
3858 "v_range": [["v6.0.0", ""]],
3859 },
3860 "neighbor": {
3861 "type": "list",
3862 "elements": "dict",
3863 "children": {
3864 "ip": {"v_range": [["v6.0.0", ""]], "type": "string", "required": True},
3865 "advertisement_interval": {
3866 "v_range": [["v6.0.0", ""]],
3867 "type": "integer",
3868 },
3869 "allowas_in_enable": {
3870 "v_range": [["v6.0.0", ""]],
3871 "type": "string",
3872 "options": [{"value": "enable"}, {"value": "disable"}],
3873 },
3874 "allowas_in_enable6": {
3875 "v_range": [["v6.0.0", ""]],
3876 "type": "string",
3877 "options": [{"value": "enable"}, {"value": "disable"}],
3878 },
3879 "allowas_in_enable_vpnv4": {
3880 "v_range": [["v7.4.0", ""]],
3881 "type": "string",
3882 "options": [{"value": "enable"}, {"value": "disable"}],
3883 },
3884 "allowas_in_enable_vpnv6": {
3885 "v_range": [["v7.4.2", ""]],
3886 "type": "string",
3887 "options": [{"value": "enable"}, {"value": "disable"}],
3888 },
3889 "allowas_in_enable_evpn": {
3890 "v_range": [["v7.4.0", ""]],
3891 "type": "string",
3892 "options": [{"value": "enable"}, {"value": "disable"}],
3893 },
3894 "allowas_in": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3895 "allowas_in6": {"v_range": [["v6.0.0", ""]], "type": "integer"},
3896 "allowas_in_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "integer"},
3897 "allowas_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "integer"},
3898 "allowas_in_evpn": {"v_range": [["v7.4.0", ""]], "type": "integer"},
3899 "attribute_unchanged": {
3900 "v_range": [["v6.0.0", ""]],
3901 "type": "list",
3902 "options": [
3903 {"value": "as-path"},
3904 {"value": "med"},
3905 {"value": "next-hop"},
3906 ],
3907 "multiple_values": True,
3908 "elements": "str",
3909 },
3910 "attribute_unchanged6": {
3911 "v_range": [["v6.0.0", ""]],
3912 "type": "list",
3913 "options": [
3914 {"value": "as-path"},
3915 {"value": "med"},
3916 {"value": "next-hop"},
3917 ],
3918 "multiple_values": True,
3919 "elements": "str",
3920 },
3921 "attribute_unchanged_vpnv4": {
3922 "v_range": [["v7.2.0", ""]],
3923 "type": "list",
3924 "options": [
3925 {"value": "as-path"},
3926 {"value": "med"},
3927 {"value": "next-hop"},
3928 ],
3929 "multiple_values": True,
3930 "elements": "str",
3931 },
3932 "attribute_unchanged_vpnv6": {
3933 "v_range": [["v7.4.2", ""]],
3934 "type": "list",
3935 "options": [
3936 {"value": "as-path"},
3937 {"value": "med"},
3938 {"value": "next-hop"},
3939 ],
3940 "multiple_values": True,
3941 "elements": "str",
3942 },
3943 "activate": {
3944 "v_range": [["v6.0.0", ""]],
3945 "type": "string",
3946 "options": [{"value": "enable"}, {"value": "disable"}],
3947 },
3948 "activate6": {
3949 "v_range": [["v6.0.0", ""]],
3950 "type": "string",
3951 "options": [{"value": "enable"}, {"value": "disable"}],
3952 },
3953 "activate_vpnv4": {
3954 "v_range": [["v7.2.0", ""]],
3955 "type": "string",
3956 "options": [{"value": "enable"}, {"value": "disable"}],
3957 },
3958 "activate_vpnv6": {
3959 "v_range": [["v7.4.2", ""]],
3960 "type": "string",
3961 "options": [{"value": "enable"}, {"value": "disable"}],
3962 },
3963 "activate_evpn": {
3964 "v_range": [["v7.4.0", ""]],
3965 "type": "string",
3966 "options": [{"value": "enable"}, {"value": "disable"}],
3967 },
3968 "bfd": {
3969 "v_range": [["v6.0.0", ""]],
3970 "type": "string",
3971 "options": [{"value": "enable"}, {"value": "disable"}],
3972 },
3973 "capability_dynamic": {
3974 "v_range": [["v6.0.0", ""]],
3975 "type": "string",
3976 "options": [{"value": "enable"}, {"value": "disable"}],
3977 },
3978 "capability_orf": {
3979 "v_range": [["v6.0.0", ""]],
3980 "type": "string",
3981 "options": [
3982 {"value": "none"},
3983 {"value": "receive"},
3984 {"value": "send"},
3985 {"value": "both"},
3986 ],
3987 },
3988 "capability_orf6": {
3989 "v_range": [["v6.0.0", ""]],
3990 "type": "string",
3991 "options": [
3992 {"value": "none"},
3993 {"value": "receive"},
3994 {"value": "send"},
3995 {"value": "both"},
3996 ],
3997 },
3998 "capability_graceful_restart": {
3999 "v_range": [["v6.0.0", ""]],
4000 "type": "string",
4001 "options": [{"value": "enable"}, {"value": "disable"}],
4002 },
4003 "capability_graceful_restart6": {
4004 "v_range": [["v6.0.0", ""]],
4005 "type": "string",
4006 "options": [{"value": "enable"}, {"value": "disable"}],
4007 },
4008 "capability_graceful_restart_vpnv4": {
4009 "v_range": [["v7.2.0", ""]],
4010 "type": "string",
4011 "options": [{"value": "enable"}, {"value": "disable"}],
4012 },
4013 "capability_graceful_restart_vpnv6": {
4014 "v_range": [["v7.4.2", ""]],
4015 "type": "string",
4016 "options": [{"value": "enable"}, {"value": "disable"}],
4017 },
4018 "capability_graceful_restart_evpn": {
4019 "v_range": [["v7.4.0", ""]],
4020 "type": "string",
4021 "options": [{"value": "enable"}, {"value": "disable"}],
4022 },
4023 "capability_route_refresh": {
4024 "v_range": [["v6.0.0", ""]],
4025 "type": "string",
4026 "options": [{"value": "enable"}, {"value": "disable"}],
4027 },
4028 "capability_default_originate": {
4029 "v_range": [["v6.0.0", ""]],
4030 "type": "string",
4031 "options": [{"value": "enable"}, {"value": "disable"}],
4032 },
4033 "capability_default_originate6": {
4034 "v_range": [["v6.0.0", ""]],
4035 "type": "string",
4036 "options": [{"value": "enable"}, {"value": "disable"}],
4037 },
4038 "dont_capability_negotiate": {
4039 "v_range": [["v6.0.0", ""]],
4040 "type": "string",
4041 "options": [{"value": "enable"}, {"value": "disable"}],
4042 },
4043 "ebgp_enforce_multihop": {
4044 "v_range": [["v6.0.0", ""]],
4045 "type": "string",
4046 "options": [{"value": "enable"}, {"value": "disable"}],
4047 },
4048 "link_down_failover": {
4049 "v_range": [["v6.0.0", ""]],
4050 "type": "string",
4051 "options": [{"value": "enable"}, {"value": "disable"}],
4052 },
4053 "stale_route": {
4054 "v_range": [["v6.0.0", ""]],
4055 "type": "string",
4056 "options": [{"value": "enable"}, {"value": "disable"}],
4057 },
4058 "next_hop_self": {
4059 "v_range": [["v6.0.0", ""]],
4060 "type": "string",
4061 "options": [{"value": "enable"}, {"value": "disable"}],
4062 },
4063 "next_hop_self6": {
4064 "v_range": [["v6.0.0", ""]],
4065 "type": "string",
4066 "options": [{"value": "enable"}, {"value": "disable"}],
4067 },
4068 "next_hop_self_rr": {
4069 "v_range": [["v6.4.4", ""]],
4070 "type": "string",
4071 "options": [{"value": "enable"}, {"value": "disable"}],
4072 },
4073 "next_hop_self_rr6": {
4074 "v_range": [["v6.4.4", ""]],
4075 "type": "string",
4076 "options": [{"value": "enable"}, {"value": "disable"}],
4077 },
4078 "next_hop_self_vpnv4": {
4079 "v_range": [["v7.2.0", ""]],
4080 "type": "string",
4081 "options": [{"value": "enable"}, {"value": "disable"}],
4082 },
4083 "next_hop_self_vpnv6": {
4084 "v_range": [["v7.4.2", ""]],
4085 "type": "string",
4086 "options": [{"value": "enable"}, {"value": "disable"}],
4087 },
4088 "override_capability": {
4089 "v_range": [["v6.0.0", ""]],
4090 "type": "string",
4091 "options": [{"value": "enable"}, {"value": "disable"}],
4092 },
4093 "passive": {
4094 "v_range": [["v6.0.0", ""]],
4095 "type": "string",
4096 "options": [{"value": "enable"}, {"value": "disable"}],
4097 },
4098 "remove_private_as": {
4099 "v_range": [["v6.0.0", ""]],
4100 "type": "string",
4101 "options": [{"value": "enable"}, {"value": "disable"}],
4102 },
4103 "remove_private_as6": {
4104 "v_range": [["v6.0.0", ""]],
4105 "type": "string",
4106 "options": [{"value": "enable"}, {"value": "disable"}],
4107 },
4108 "remove_private_as_vpnv4": {
4109 "v_range": [["v7.2.0", ""]],
4110 "type": "string",
4111 "options": [{"value": "enable"}, {"value": "disable"}],
4112 },
4113 "remove_private_as_vpnv6": {
4114 "v_range": [["v7.4.2", ""]],
4115 "type": "string",
4116 "options": [{"value": "enable"}, {"value": "disable"}],
4117 },
4118 "remove_private_as_evpn": {
4119 "v_range": [["v7.4.0", ""]],
4120 "type": "string",
4121 "options": [{"value": "enable"}, {"value": "disable"}],
4122 },
4123 "route_reflector_client": {
4124 "v_range": [["v6.0.0", ""]],
4125 "type": "string",
4126 "options": [{"value": "enable"}, {"value": "disable"}],
4127 },
4128 "route_reflector_client6": {
4129 "v_range": [["v6.0.0", ""]],
4130 "type": "string",
4131 "options": [{"value": "enable"}, {"value": "disable"}],
4132 },
4133 "route_reflector_client_vpnv4": {
4134 "v_range": [["v7.2.0", ""]],
4135 "type": "string",
4136 "options": [{"value": "enable"}, {"value": "disable"}],
4137 },
4138 "route_reflector_client_vpnv6": {
4139 "v_range": [["v7.4.2", ""]],
4140 "type": "string",
4141 "options": [{"value": "enable"}, {"value": "disable"}],
4142 },
4143 "route_reflector_client_evpn": {
4144 "v_range": [["v7.4.0", ""]],
4145 "type": "string",
4146 "options": [{"value": "enable"}, {"value": "disable"}],
4147 },
4148 "route_server_client": {
4149 "v_range": [["v6.0.0", ""]],
4150 "type": "string",
4151 "options": [{"value": "enable"}, {"value": "disable"}],
4152 },
4153 "route_server_client6": {
4154 "v_range": [["v6.0.0", ""]],
4155 "type": "string",
4156 "options": [{"value": "enable"}, {"value": "disable"}],
4157 },
4158 "route_server_client_vpnv4": {
4159 "v_range": [["v7.2.0", ""]],
4160 "type": "string",
4161 "options": [{"value": "enable"}, {"value": "disable"}],
4162 },
4163 "route_server_client_vpnv6": {
4164 "v_range": [["v7.4.2", ""]],
4165 "type": "string",
4166 "options": [{"value": "enable"}, {"value": "disable"}],
4167 },
4168 "route_server_client_evpn": {
4169 "v_range": [["v7.4.0", ""]],
4170 "type": "string",
4171 "options": [{"value": "enable"}, {"value": "disable"}],
4172 },
4173 "rr_attr_allow_change": {
4174 "v_range": [["v7.6.1", ""]],
4175 "type": "string",
4176 "options": [{"value": "enable"}, {"value": "disable"}],
4177 },
4178 "rr_attr_allow_change6": {
4179 "v_range": [["v7.6.1", ""]],
4180 "type": "string",
4181 "options": [{"value": "enable"}, {"value": "disable"}],
4182 },
4183 "rr_attr_allow_change_vpnv4": {
4184 "v_range": [["v7.6.1", ""]],
4185 "type": "string",
4186 "options": [{"value": "enable"}, {"value": "disable"}],
4187 },
4188 "rr_attr_allow_change_vpnv6": {
4189 "v_range": [["v7.6.1", ""]],
4190 "type": "string",
4191 "options": [{"value": "enable"}, {"value": "disable"}],
4192 },
4193 "rr_attr_allow_change_evpn": {
4194 "v_range": [["v7.6.1", ""]],
4195 "type": "string",
4196 "options": [{"value": "enable"}, {"value": "disable"}],
4197 },
4198 "shutdown": {
4199 "v_range": [["v6.0.0", ""]],
4200 "type": "string",
4201 "options": [{"value": "enable"}, {"value": "disable"}],
4202 },
4203 "soft_reconfiguration": {
4204 "v_range": [["v6.0.0", ""]],
4205 "type": "string",
4206 "options": [{"value": "enable"}, {"value": "disable"}],
4207 },
4208 "soft_reconfiguration6": {
4209 "v_range": [["v6.0.0", ""]],
4210 "type": "string",
4211 "options": [{"value": "enable"}, {"value": "disable"}],
4212 },
4213 "soft_reconfiguration_vpnv4": {
4214 "v_range": [["v7.2.0", ""]],
4215 "type": "string",
4216 "options": [{"value": "enable"}, {"value": "disable"}],
4217 },
4218 "soft_reconfiguration_vpnv6": {
4219 "v_range": [["v7.4.2", ""]],
4220 "type": "string",
4221 "options": [{"value": "enable"}, {"value": "disable"}],
4222 },
4223 "soft_reconfiguration_evpn": {
4224 "v_range": [["v7.4.0", ""]],
4225 "type": "string",
4226 "options": [{"value": "enable"}, {"value": "disable"}],
4227 },
4228 "as_override": {
4229 "v_range": [["v6.0.0", ""]],
4230 "type": "string",
4231 "options": [{"value": "enable"}, {"value": "disable"}],
4232 },
4233 "as_override6": {
4234 "v_range": [["v6.0.0", ""]],
4235 "type": "string",
4236 "options": [{"value": "enable"}, {"value": "disable"}],
4237 },
4238 "strict_capability_match": {
4239 "v_range": [["v6.0.0", ""]],
4240 "type": "string",
4241 "options": [{"value": "enable"}, {"value": "disable"}],
4242 },
4243 "default_originate_routemap": {
4244 "v_range": [["v6.0.0", ""]],
4245 "type": "string",
4246 },
4247 "default_originate_routemap6": {
4248 "v_range": [["v6.0.0", ""]],
4249 "type": "string",
4250 },
4251 "description": {"v_range": [["v6.0.0", ""]], "type": "string"},
4252 "distribute_list_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
4253 "distribute_list_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4254 "distribute_list_in_vpnv4": {
4255 "v_range": [["v7.2.0", ""]],
4256 "type": "string",
4257 },
4258 "distribute_list_in_vpnv6": {
4259 "v_range": [["v7.4.2", ""]],
4260 "type": "string",
4261 },
4262 "distribute_list_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
4263 "distribute_list_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4264 "distribute_list_out_vpnv4": {
4265 "v_range": [["v7.2.0", ""]],
4266 "type": "string",
4267 },
4268 "distribute_list_out_vpnv6": {
4269 "v_range": [["v7.4.2", ""]],
4270 "type": "string",
4271 },
4272 "ebgp_multihop_ttl": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4273 "filter_list_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
4274 "filter_list_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4275 "filter_list_in_vpnv4": {"v_range": [["v7.4.1", ""]], "type": "string"},
4276 "filter_list_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
4277 "filter_list_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
4278 "filter_list_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4279 "filter_list_out_vpnv4": {
4280 "v_range": [["v7.4.1", ""]],
4281 "type": "string",
4282 },
4283 "filter_list_out_vpnv6": {
4284 "v_range": [["v7.4.2", ""]],
4285 "type": "string",
4286 },
4287 "interface": {"v_range": [["v6.0.0", ""]], "type": "string"},
4288 "maximum_prefix": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4289 "maximum_prefix6": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4290 "maximum_prefix_vpnv4": {
4291 "v_range": [["v7.2.0", ""]],
4292 "type": "integer",
4293 },
4294 "maximum_prefix_vpnv6": {
4295 "v_range": [["v7.4.2", ""]],
4296 "type": "integer",
4297 },
4298 "maximum_prefix_evpn": {"v_range": [["v7.4.0", ""]], "type": "integer"},
4299 "maximum_prefix_threshold": {
4300 "v_range": [["v6.0.0", ""]],
4301 "type": "integer",
4302 },
4303 "maximum_prefix_threshold6": {
4304 "v_range": [["v6.0.0", ""]],
4305 "type": "integer",
4306 },
4307 "maximum_prefix_threshold_vpnv4": {
4308 "v_range": [["v7.2.0", ""]],
4309 "type": "integer",
4310 },
4311 "maximum_prefix_threshold_vpnv6": {
4312 "v_range": [["v7.4.2", ""]],
4313 "type": "integer",
4314 },
4315 "maximum_prefix_threshold_evpn": {
4316 "v_range": [["v7.4.0", ""]],
4317 "type": "integer",
4318 },
4319 "maximum_prefix_warning_only": {
4320 "v_range": [["v6.0.0", ""]],
4321 "type": "string",
4322 "options": [{"value": "enable"}, {"value": "disable"}],
4323 },
4324 "maximum_prefix_warning_only6": {
4325 "v_range": [["v6.0.0", ""]],
4326 "type": "string",
4327 "options": [{"value": "enable"}, {"value": "disable"}],
4328 },
4329 "maximum_prefix_warning_only_vpnv4": {
4330 "v_range": [["v7.2.0", ""]],
4331 "type": "string",
4332 "options": [{"value": "enable"}, {"value": "disable"}],
4333 },
4334 "maximum_prefix_warning_only_vpnv6": {
4335 "v_range": [["v7.4.2", ""]],
4336 "type": "string",
4337 "options": [{"value": "enable"}, {"value": "disable"}],
4338 },
4339 "maximum_prefix_warning_only_evpn": {
4340 "v_range": [["v7.4.0", ""]],
4341 "type": "string",
4342 "options": [{"value": "enable"}, {"value": "disable"}],
4343 },
4344 "prefix_list_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
4345 "prefix_list_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4346 "prefix_list_in_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "string"},
4347 "prefix_list_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
4348 "prefix_list_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
4349 "prefix_list_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4350 "prefix_list_out_vpnv4": {
4351 "v_range": [["v7.2.0", ""]],
4352 "type": "string",
4353 },
4354 "prefix_list_out_vpnv6": {
4355 "v_range": [["v7.4.2", ""]],
4356 "type": "string",
4357 },
4358 "remote_as": {"v_range": [["v6.0.0", ""]], "type": "string"},
4359 "local_as": {"v_range": [["v6.0.0", ""]], "type": "string"},
4360 "local_as_no_prepend": {
4361 "v_range": [["v6.0.0", ""]],
4362 "type": "string",
4363 "options": [{"value": "enable"}, {"value": "disable"}],
4364 },
4365 "local_as_replace_as": {
4366 "v_range": [["v6.0.0", ""]],
4367 "type": "string",
4368 "options": [{"value": "enable"}, {"value": "disable"}],
4369 },
4370 "retain_stale_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4371 "route_map_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
4372 "route_map_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4373 "route_map_in_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "string"},
4374 "route_map_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
4375 "route_map_in_evpn": {"v_range": [["v7.4.0", ""]], "type": "string"},
4376 "route_map_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
4377 "route_map_out_preferable": {
4378 "v_range": [["v6.2.0", ""]],
4379 "type": "string",
4380 },
4381 "route_map_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4382 "route_map_out6_preferable": {
4383 "v_range": [["v6.2.0", ""]],
4384 "type": "string",
4385 },
4386 "route_map_out_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "string"},
4387 "route_map_out_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
4388 "route_map_out_vpnv4_preferable": {
4389 "v_range": [["v7.2.0", ""]],
4390 "type": "string",
4391 },
4392 "route_map_out_vpnv6_preferable": {
4393 "v_range": [["v7.4.2", ""]],
4394 "type": "string",
4395 },
4396 "route_map_out_evpn": {"v_range": [["v7.4.0", ""]], "type": "string"},
4397 "send_community": {
4398 "v_range": [["v6.0.0", ""]],
4399 "type": "string",
4400 "options": [
4401 {"value": "standard"},
4402 {"value": "extended"},
4403 {"value": "both"},
4404 {"value": "disable"},
4405 ],
4406 },
4407 "send_community6": {
4408 "v_range": [["v6.0.0", ""]],
4409 "type": "string",
4410 "options": [
4411 {"value": "standard"},
4412 {"value": "extended"},
4413 {"value": "both"},
4414 {"value": "disable"},
4415 ],
4416 },
4417 "send_community_vpnv4": {
4418 "v_range": [["v7.2.0", ""]],
4419 "type": "string",
4420 "options": [
4421 {"value": "standard"},
4422 {"value": "extended"},
4423 {"value": "both"},
4424 {"value": "disable"},
4425 ],
4426 },
4427 "send_community_vpnv6": {
4428 "v_range": [["v7.4.2", ""]],
4429 "type": "string",
4430 "options": [
4431 {"value": "standard"},
4432 {"value": "extended"},
4433 {"value": "both"},
4434 {"value": "disable"},
4435 ],
4436 },
4437 "send_community_evpn": {
4438 "v_range": [["v7.4.0", ""]],
4439 "type": "string",
4440 "options": [
4441 {"value": "standard"},
4442 {"value": "extended"},
4443 {"value": "both"},
4444 {"value": "disable"},
4445 ],
4446 },
4447 "keep_alive_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4448 "holdtime_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4449 "connect_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4450 "unsuppress_map": {"v_range": [["v6.0.0", ""]], "type": "string"},
4451 "unsuppress_map6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4452 "update_source": {"v_range": [["v6.0.0", ""]], "type": "string"},
4453 "weight": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4454 "restart_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4455 "additional_path": {
4456 "v_range": [["v6.2.0", ""]],
4457 "type": "string",
4458 "options": [
4459 {"value": "send"},
4460 {"value": "receive"},
4461 {"value": "both"},
4462 {"value": "disable"},
4463 ],
4464 },
4465 "additional_path6": {
4466 "v_range": [["v6.2.0", ""]],
4467 "type": "string",
4468 "options": [
4469 {"value": "send"},
4470 {"value": "receive"},
4471 {"value": "both"},
4472 {"value": "disable"},
4473 ],
4474 },
4475 "additional_path_vpnv4": {
4476 "v_range": [["v7.2.0", ""]],
4477 "type": "string",
4478 "options": [
4479 {"value": "send"},
4480 {"value": "receive"},
4481 {"value": "both"},
4482 {"value": "disable"},
4483 ],
4484 },
4485 "additional_path_vpnv6": {
4486 "v_range": [["v7.4.2", ""]],
4487 "type": "string",
4488 "options": [
4489 {"value": "send"},
4490 {"value": "receive"},
4491 {"value": "both"},
4492 {"value": "disable"},
4493 ],
4494 },
4495 "adv_additional_path": {"v_range": [["v6.2.0", ""]], "type": "integer"},
4496 "adv_additional_path6": {
4497 "v_range": [["v6.2.0", ""]],
4498 "type": "integer",
4499 },
4500 "adv_additional_path_vpnv4": {
4501 "v_range": [["v7.2.0", ""]],
4502 "type": "integer",
4503 },
4504 "adv_additional_path_vpnv6": {
4505 "v_range": [["v7.4.2", ""]],
4506 "type": "integer",
4507 },
4508 "password": {"v_range": [["v6.0.0", ""]], "type": "string"},
4509 "auth_options": {"v_range": [["v7.4.2", ""]], "type": "string"},
4510 "conditional_advertise": {
4511 "type": "list",
4512 "elements": "dict",
4513 "children": {
4514 "advertise_routemap": {
4515 "v_range": [["v6.0.0", ""]],
4516 "type": "string",
4517 "required": True,
4518 },
4519 "condition_routemap": {
4520 "type": "list",
4521 "elements": "dict",
4522 "children": {
4523 "name": {
4524 "v_range": [["v7.0.4", ""]],
4525 "type": "string",
4526 "required": True,
4527 }
4528 },
4529 "v_range": [["v6.0.0", ""]],
4530 },
4531 "condition_type": {
4532 "v_range": [["v6.0.0", ""]],
4533 "type": "string",
4534 "options": [{"value": "exist"}, {"value": "non-exist"}],
4535 },
4536 },
4537 "v_range": [["v6.0.0", ""]],
4538 },
4539 "conditional_advertise6": {
4540 "type": "list",
4541 "elements": "dict",
4542 "children": {
4543 "advertise_routemap": {
4544 "v_range": [["v7.0.1", ""]],
4545 "type": "string",
4546 "required": True,
4547 },
4548 "condition_routemap": {
4549 "type": "list",
4550 "elements": "dict",
4551 "children": {
4552 "name": {
4553 "v_range": [["v7.0.4", ""]],
4554 "type": "string",
4555 "required": True,
4556 }
4557 },
4558 "v_range": [["v7.0.1", ""]],
4559 },
4560 "condition_type": {
4561 "v_range": [["v7.0.1", ""]],
4562 "type": "string",
4563 "options": [{"value": "exist"}, {"value": "non-exist"}],
4564 },
4565 },
4566 "v_range": [["v7.0.1", ""]],
4567 },
4568 },
4569 "v_range": [["v6.0.0", ""]],
4570 },
4571 "neighbor_group": {
4572 "type": "list",
4573 "elements": "dict",
4574 "children": {
4575 "name": {
4576 "v_range": [["v6.0.0", ""]],
4577 "type": "string",
4578 "required": True,
4579 },
4580 "advertisement_interval": {
4581 "v_range": [["v6.0.0", ""]],
4582 "type": "integer",
4583 },
4584 "allowas_in_enable": {
4585 "v_range": [["v6.0.0", ""]],
4586 "type": "string",
4587 "options": [{"value": "enable"}, {"value": "disable"}],
4588 },
4589 "allowas_in_enable6": {
4590 "v_range": [["v6.0.0", ""]],
4591 "type": "string",
4592 "options": [{"value": "enable"}, {"value": "disable"}],
4593 },
4594 "allowas_in_enable_vpnv4": {
4595 "v_range": [["v7.4.0", ""]],
4596 "type": "string",
4597 "options": [{"value": "enable"}, {"value": "disable"}],
4598 },
4599 "allowas_in_enable_vpnv6": {
4600 "v_range": [["v7.4.2", ""]],
4601 "type": "string",
4602 "options": [{"value": "enable"}, {"value": "disable"}],
4603 },
4604 "allowas_in_enable_evpn": {
4605 "v_range": [["v7.4.0", ""]],
4606 "type": "string",
4607 "options": [{"value": "enable"}, {"value": "disable"}],
4608 },
4609 "allowas_in": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4610 "allowas_in6": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4611 "allowas_in_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "integer"},
4612 "allowas_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "integer"},
4613 "allowas_in_evpn": {"v_range": [["v7.4.0", ""]], "type": "integer"},
4614 "attribute_unchanged": {
4615 "v_range": [["v6.0.0", ""]],
4616 "type": "list",
4617 "options": [
4618 {"value": "as-path"},
4619 {"value": "med"},
4620 {"value": "next-hop"},
4621 ],
4622 "multiple_values": True,
4623 "elements": "str",
4624 },
4625 "attribute_unchanged6": {
4626 "v_range": [["v6.0.0", ""]],
4627 "type": "list",
4628 "options": [
4629 {"value": "as-path"},
4630 {"value": "med"},
4631 {"value": "next-hop"},
4632 ],
4633 "multiple_values": True,
4634 "elements": "str",
4635 },
4636 "attribute_unchanged_vpnv4": {
4637 "v_range": [["v7.2.0", ""]],
4638 "type": "list",
4639 "options": [
4640 {"value": "as-path"},
4641 {"value": "med"},
4642 {"value": "next-hop"},
4643 ],
4644 "multiple_values": True,
4645 "elements": "str",
4646 },
4647 "attribute_unchanged_vpnv6": {
4648 "v_range": [["v7.4.2", ""]],
4649 "type": "list",
4650 "options": [
4651 {"value": "as-path"},
4652 {"value": "med"},
4653 {"value": "next-hop"},
4654 ],
4655 "multiple_values": True,
4656 "elements": "str",
4657 },
4658 "activate": {
4659 "v_range": [["v6.0.0", ""]],
4660 "type": "string",
4661 "options": [{"value": "enable"}, {"value": "disable"}],
4662 },
4663 "activate6": {
4664 "v_range": [["v6.0.0", ""]],
4665 "type": "string",
4666 "options": [{"value": "enable"}, {"value": "disable"}],
4667 },
4668 "activate_vpnv4": {
4669 "v_range": [["v7.2.0", ""]],
4670 "type": "string",
4671 "options": [{"value": "enable"}, {"value": "disable"}],
4672 },
4673 "activate_vpnv6": {
4674 "v_range": [["v7.4.2", ""]],
4675 "type": "string",
4676 "options": [{"value": "enable"}, {"value": "disable"}],
4677 },
4678 "activate_evpn": {
4679 "v_range": [["v7.4.0", ""]],
4680 "type": "string",
4681 "options": [{"value": "enable"}, {"value": "disable"}],
4682 },
4683 "bfd": {
4684 "v_range": [["v6.0.0", ""]],
4685 "type": "string",
4686 "options": [{"value": "enable"}, {"value": "disable"}],
4687 },
4688 "capability_dynamic": {
4689 "v_range": [["v6.0.0", ""]],
4690 "type": "string",
4691 "options": [{"value": "enable"}, {"value": "disable"}],
4692 },
4693 "capability_orf": {
4694 "v_range": [["v6.0.0", ""]],
4695 "type": "string",
4696 "options": [
4697 {"value": "none"},
4698 {"value": "receive"},
4699 {"value": "send"},
4700 {"value": "both"},
4701 ],
4702 },
4703 "capability_orf6": {
4704 "v_range": [["v6.0.0", ""]],
4705 "type": "string",
4706 "options": [
4707 {"value": "none"},
4708 {"value": "receive"},
4709 {"value": "send"},
4710 {"value": "both"},
4711 ],
4712 },
4713 "capability_graceful_restart": {
4714 "v_range": [["v6.0.0", ""]],
4715 "type": "string",
4716 "options": [{"value": "enable"}, {"value": "disable"}],
4717 },
4718 "capability_graceful_restart6": {
4719 "v_range": [["v6.0.0", ""]],
4720 "type": "string",
4721 "options": [{"value": "enable"}, {"value": "disable"}],
4722 },
4723 "capability_graceful_restart_vpnv4": {
4724 "v_range": [["v7.2.0", ""]],
4725 "type": "string",
4726 "options": [{"value": "enable"}, {"value": "disable"}],
4727 },
4728 "capability_graceful_restart_vpnv6": {
4729 "v_range": [["v7.4.2", ""]],
4730 "type": "string",
4731 "options": [{"value": "enable"}, {"value": "disable"}],
4732 },
4733 "capability_graceful_restart_evpn": {
4734 "v_range": [["v7.4.0", ""]],
4735 "type": "string",
4736 "options": [{"value": "enable"}, {"value": "disable"}],
4737 },
4738 "capability_route_refresh": {
4739 "v_range": [["v6.0.0", ""]],
4740 "type": "string",
4741 "options": [{"value": "enable"}, {"value": "disable"}],
4742 },
4743 "capability_default_originate": {
4744 "v_range": [["v6.0.0", ""]],
4745 "type": "string",
4746 "options": [{"value": "enable"}, {"value": "disable"}],
4747 },
4748 "capability_default_originate6": {
4749 "v_range": [["v6.0.0", ""]],
4750 "type": "string",
4751 "options": [{"value": "enable"}, {"value": "disable"}],
4752 },
4753 "dont_capability_negotiate": {
4754 "v_range": [["v6.0.0", ""]],
4755 "type": "string",
4756 "options": [{"value": "enable"}, {"value": "disable"}],
4757 },
4758 "ebgp_enforce_multihop": {
4759 "v_range": [["v6.0.0", ""]],
4760 "type": "string",
4761 "options": [{"value": "enable"}, {"value": "disable"}],
4762 },
4763 "link_down_failover": {
4764 "v_range": [["v6.0.0", ""]],
4765 "type": "string",
4766 "options": [{"value": "enable"}, {"value": "disable"}],
4767 },
4768 "stale_route": {
4769 "v_range": [["v6.0.0", ""]],
4770 "type": "string",
4771 "options": [{"value": "enable"}, {"value": "disable"}],
4772 },
4773 "next_hop_self": {
4774 "v_range": [["v6.0.0", ""]],
4775 "type": "string",
4776 "options": [{"value": "enable"}, {"value": "disable"}],
4777 },
4778 "next_hop_self6": {
4779 "v_range": [["v6.0.0", ""]],
4780 "type": "string",
4781 "options": [{"value": "enable"}, {"value": "disable"}],
4782 },
4783 "next_hop_self_rr": {
4784 "v_range": [["v6.4.4", ""]],
4785 "type": "string",
4786 "options": [{"value": "enable"}, {"value": "disable"}],
4787 },
4788 "next_hop_self_rr6": {
4789 "v_range": [["v6.4.4", ""]],
4790 "type": "string",
4791 "options": [{"value": "enable"}, {"value": "disable"}],
4792 },
4793 "next_hop_self_vpnv4": {
4794 "v_range": [["v7.2.0", ""]],
4795 "type": "string",
4796 "options": [{"value": "enable"}, {"value": "disable"}],
4797 },
4798 "next_hop_self_vpnv6": {
4799 "v_range": [["v7.4.2", ""]],
4800 "type": "string",
4801 "options": [{"value": "enable"}, {"value": "disable"}],
4802 },
4803 "override_capability": {
4804 "v_range": [["v6.0.0", ""]],
4805 "type": "string",
4806 "options": [{"value": "enable"}, {"value": "disable"}],
4807 },
4808 "passive": {
4809 "v_range": [["v6.0.0", ""]],
4810 "type": "string",
4811 "options": [{"value": "enable"}, {"value": "disable"}],
4812 },
4813 "remove_private_as": {
4814 "v_range": [["v6.0.0", ""]],
4815 "type": "string",
4816 "options": [{"value": "enable"}, {"value": "disable"}],
4817 },
4818 "remove_private_as6": {
4819 "v_range": [["v6.0.0", ""]],
4820 "type": "string",
4821 "options": [{"value": "enable"}, {"value": "disable"}],
4822 },
4823 "remove_private_as_vpnv4": {
4824 "v_range": [["v7.2.0", ""]],
4825 "type": "string",
4826 "options": [{"value": "enable"}, {"value": "disable"}],
4827 },
4828 "remove_private_as_vpnv6": {
4829 "v_range": [["v7.4.2", ""]],
4830 "type": "string",
4831 "options": [{"value": "enable"}, {"value": "disable"}],
4832 },
4833 "remove_private_as_evpn": {
4834 "v_range": [["v7.4.0", ""]],
4835 "type": "string",
4836 "options": [{"value": "enable"}, {"value": "disable"}],
4837 },
4838 "route_reflector_client": {
4839 "v_range": [["v6.0.0", ""]],
4840 "type": "string",
4841 "options": [{"value": "enable"}, {"value": "disable"}],
4842 },
4843 "route_reflector_client6": {
4844 "v_range": [["v6.0.0", ""]],
4845 "type": "string",
4846 "options": [{"value": "enable"}, {"value": "disable"}],
4847 },
4848 "route_reflector_client_vpnv4": {
4849 "v_range": [["v7.2.0", ""]],
4850 "type": "string",
4851 "options": [{"value": "enable"}, {"value": "disable"}],
4852 },
4853 "route_reflector_client_vpnv6": {
4854 "v_range": [["v7.4.2", ""]],
4855 "type": "string",
4856 "options": [{"value": "enable"}, {"value": "disable"}],
4857 },
4858 "route_reflector_client_evpn": {
4859 "v_range": [["v7.4.0", ""]],
4860 "type": "string",
4861 "options": [{"value": "enable"}, {"value": "disable"}],
4862 },
4863 "route_server_client": {
4864 "v_range": [["v6.0.0", ""]],
4865 "type": "string",
4866 "options": [{"value": "enable"}, {"value": "disable"}],
4867 },
4868 "route_server_client6": {
4869 "v_range": [["v6.0.0", ""]],
4870 "type": "string",
4871 "options": [{"value": "enable"}, {"value": "disable"}],
4872 },
4873 "route_server_client_vpnv4": {
4874 "v_range": [["v7.2.0", ""]],
4875 "type": "string",
4876 "options": [{"value": "enable"}, {"value": "disable"}],
4877 },
4878 "route_server_client_vpnv6": {
4879 "v_range": [["v7.4.2", ""]],
4880 "type": "string",
4881 "options": [{"value": "enable"}, {"value": "disable"}],
4882 },
4883 "route_server_client_evpn": {
4884 "v_range": [["v7.4.0", ""]],
4885 "type": "string",
4886 "options": [{"value": "enable"}, {"value": "disable"}],
4887 },
4888 "rr_attr_allow_change": {
4889 "v_range": [["v7.6.1", ""]],
4890 "type": "string",
4891 "options": [{"value": "enable"}, {"value": "disable"}],
4892 },
4893 "rr_attr_allow_change6": {
4894 "v_range": [["v7.6.1", ""]],
4895 "type": "string",
4896 "options": [{"value": "enable"}, {"value": "disable"}],
4897 },
4898 "rr_attr_allow_change_vpnv4": {
4899 "v_range": [["v7.6.1", ""]],
4900 "type": "string",
4901 "options": [{"value": "enable"}, {"value": "disable"}],
4902 },
4903 "rr_attr_allow_change_vpnv6": {
4904 "v_range": [["v7.6.1", ""]],
4905 "type": "string",
4906 "options": [{"value": "enable"}, {"value": "disable"}],
4907 },
4908 "rr_attr_allow_change_evpn": {
4909 "v_range": [["v7.6.1", ""]],
4910 "type": "string",
4911 "options": [{"value": "enable"}, {"value": "disable"}],
4912 },
4913 "shutdown": {
4914 "v_range": [["v6.0.0", ""]],
4915 "type": "string",
4916 "options": [{"value": "enable"}, {"value": "disable"}],
4917 },
4918 "soft_reconfiguration": {
4919 "v_range": [["v6.0.0", ""]],
4920 "type": "string",
4921 "options": [{"value": "enable"}, {"value": "disable"}],
4922 },
4923 "soft_reconfiguration6": {
4924 "v_range": [["v6.0.0", ""]],
4925 "type": "string",
4926 "options": [{"value": "enable"}, {"value": "disable"}],
4927 },
4928 "soft_reconfiguration_vpnv4": {
4929 "v_range": [["v7.2.0", ""]],
4930 "type": "string",
4931 "options": [{"value": "enable"}, {"value": "disable"}],
4932 },
4933 "soft_reconfiguration_vpnv6": {
4934 "v_range": [["v7.4.2", ""]],
4935 "type": "string",
4936 "options": [{"value": "enable"}, {"value": "disable"}],
4937 },
4938 "soft_reconfiguration_evpn": {
4939 "v_range": [["v7.4.0", ""]],
4940 "type": "string",
4941 "options": [{"value": "enable"}, {"value": "disable"}],
4942 },
4943 "as_override": {
4944 "v_range": [["v6.0.0", ""]],
4945 "type": "string",
4946 "options": [{"value": "enable"}, {"value": "disable"}],
4947 },
4948 "as_override6": {
4949 "v_range": [["v6.0.0", ""]],
4950 "type": "string",
4951 "options": [{"value": "enable"}, {"value": "disable"}],
4952 },
4953 "strict_capability_match": {
4954 "v_range": [["v6.0.0", ""]],
4955 "type": "string",
4956 "options": [{"value": "enable"}, {"value": "disable"}],
4957 },
4958 "default_originate_routemap": {
4959 "v_range": [["v6.0.0", ""]],
4960 "type": "string",
4961 },
4962 "default_originate_routemap6": {
4963 "v_range": [["v6.0.0", ""]],
4964 "type": "string",
4965 },
4966 "description": {"v_range": [["v6.0.0", ""]], "type": "string"},
4967 "distribute_list_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
4968 "distribute_list_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4969 "distribute_list_in_vpnv4": {
4970 "v_range": [["v7.2.0", ""]],
4971 "type": "string",
4972 },
4973 "distribute_list_in_vpnv6": {
4974 "v_range": [["v7.4.2", ""]],
4975 "type": "string",
4976 },
4977 "distribute_list_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
4978 "distribute_list_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4979 "distribute_list_out_vpnv4": {
4980 "v_range": [["v7.2.0", ""]],
4981 "type": "string",
4982 },
4983 "distribute_list_out_vpnv6": {
4984 "v_range": [["v7.4.2", ""]],
4985 "type": "string",
4986 },
4987 "ebgp_multihop_ttl": {"v_range": [["v6.0.0", ""]], "type": "integer"},
4988 "filter_list_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
4989 "filter_list_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4990 "filter_list_in_vpnv4": {"v_range": [["v7.4.1", ""]], "type": "string"},
4991 "filter_list_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
4992 "filter_list_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
4993 "filter_list_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
4994 "filter_list_out_vpnv4": {
4995 "v_range": [["v7.4.1", ""]],
4996 "type": "string",
4997 },
4998 "filter_list_out_vpnv6": {
4999 "v_range": [["v7.4.2", ""]],
5000 "type": "string",
5001 },
5002 "interface": {"v_range": [["v6.0.0", ""]], "type": "string"},
5003 "maximum_prefix": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5004 "maximum_prefix6": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5005 "maximum_prefix_vpnv4": {
5006 "v_range": [["v7.2.0", ""]],
5007 "type": "integer",
5008 },
5009 "maximum_prefix_vpnv6": {
5010 "v_range": [["v7.4.2", ""]],
5011 "type": "integer",
5012 },
5013 "maximum_prefix_evpn": {"v_range": [["v7.4.0", ""]], "type": "integer"},
5014 "maximum_prefix_threshold": {
5015 "v_range": [["v6.0.0", ""]],
5016 "type": "integer",
5017 },
5018 "maximum_prefix_threshold6": {
5019 "v_range": [["v6.0.0", ""]],
5020 "type": "integer",
5021 },
5022 "maximum_prefix_threshold_vpnv4": {
5023 "v_range": [["v7.2.0", ""]],
5024 "type": "integer",
5025 },
5026 "maximum_prefix_threshold_vpnv6": {
5027 "v_range": [["v7.4.2", ""]],
5028 "type": "integer",
5029 },
5030 "maximum_prefix_threshold_evpn": {
5031 "v_range": [["v7.4.0", ""]],
5032 "type": "integer",
5033 },
5034 "maximum_prefix_warning_only": {
5035 "v_range": [["v6.0.0", ""]],
5036 "type": "string",
5037 "options": [{"value": "enable"}, {"value": "disable"}],
5038 },
5039 "maximum_prefix_warning_only6": {
5040 "v_range": [["v6.0.0", ""]],
5041 "type": "string",
5042 "options": [{"value": "enable"}, {"value": "disable"}],
5043 },
5044 "maximum_prefix_warning_only_vpnv4": {
5045 "v_range": [["v7.2.0", ""]],
5046 "type": "string",
5047 "options": [{"value": "enable"}, {"value": "disable"}],
5048 },
5049 "maximum_prefix_warning_only_vpnv6": {
5050 "v_range": [["v7.4.2", ""]],
5051 "type": "string",
5052 "options": [{"value": "enable"}, {"value": "disable"}],
5053 },
5054 "maximum_prefix_warning_only_evpn": {
5055 "v_range": [["v7.4.0", ""]],
5056 "type": "string",
5057 "options": [{"value": "enable"}, {"value": "disable"}],
5058 },
5059 "prefix_list_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
5060 "prefix_list_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5061 "prefix_list_in_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "string"},
5062 "prefix_list_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
5063 "prefix_list_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
5064 "prefix_list_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5065 "prefix_list_out_vpnv4": {
5066 "v_range": [["v7.2.0", ""]],
5067 "type": "string",
5068 },
5069 "prefix_list_out_vpnv6": {
5070 "v_range": [["v7.4.2", ""]],
5071 "type": "string",
5072 },
5073 "remote_as": {"v_range": [["v6.0.0", ""]], "type": "string"},
5074 "remote_as_filter": {"v_range": [["v7.4.4", ""]], "type": "string"},
5075 "local_as": {"v_range": [["v6.0.0", ""]], "type": "string"},
5076 "local_as_no_prepend": {
5077 "v_range": [["v6.0.0", ""]],
5078 "type": "string",
5079 "options": [{"value": "enable"}, {"value": "disable"}],
5080 },
5081 "local_as_replace_as": {
5082 "v_range": [["v6.0.0", ""]],
5083 "type": "string",
5084 "options": [{"value": "enable"}, {"value": "disable"}],
5085 },
5086 "retain_stale_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5087 "route_map_in": {"v_range": [["v6.0.0", ""]], "type": "string"},
5088 "route_map_in6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5089 "route_map_in_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "string"},
5090 "route_map_in_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
5091 "route_map_in_evpn": {"v_range": [["v7.4.0", ""]], "type": "string"},
5092 "route_map_out": {"v_range": [["v6.0.0", ""]], "type": "string"},
5093 "route_map_out_preferable": {
5094 "v_range": [["v6.2.0", ""]],
5095 "type": "string",
5096 },
5097 "route_map_out6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5098 "route_map_out6_preferable": {
5099 "v_range": [["v6.2.0", ""]],
5100 "type": "string",
5101 },
5102 "route_map_out_vpnv4": {"v_range": [["v7.2.0", ""]], "type": "string"},
5103 "route_map_out_vpnv6": {"v_range": [["v7.4.2", ""]], "type": "string"},
5104 "route_map_out_vpnv4_preferable": {
5105 "v_range": [["v7.2.0", ""]],
5106 "type": "string",
5107 },
5108 "route_map_out_vpnv6_preferable": {
5109 "v_range": [["v7.4.2", ""]],
5110 "type": "string",
5111 },
5112 "route_map_out_evpn": {"v_range": [["v7.4.0", ""]], "type": "string"},
5113 "send_community": {
5114 "v_range": [["v6.0.0", ""]],
5115 "type": "string",
5116 "options": [
5117 {"value": "standard"},
5118 {"value": "extended"},
5119 {"value": "both"},
5120 {"value": "disable"},
5121 ],
5122 },
5123 "send_community6": {
5124 "v_range": [["v6.0.0", ""]],
5125 "type": "string",
5126 "options": [
5127 {"value": "standard"},
5128 {"value": "extended"},
5129 {"value": "both"},
5130 {"value": "disable"},
5131 ],
5132 },
5133 "send_community_vpnv4": {
5134 "v_range": [["v7.2.0", ""]],
5135 "type": "string",
5136 "options": [
5137 {"value": "standard"},
5138 {"value": "extended"},
5139 {"value": "both"},
5140 {"value": "disable"},
5141 ],
5142 },
5143 "send_community_vpnv6": {
5144 "v_range": [["v7.4.2", ""]],
5145 "type": "string",
5146 "options": [
5147 {"value": "standard"},
5148 {"value": "extended"},
5149 {"value": "both"},
5150 {"value": "disable"},
5151 ],
5152 },
5153 "send_community_evpn": {
5154 "v_range": [["v7.4.0", ""]],
5155 "type": "string",
5156 "options": [
5157 {"value": "standard"},
5158 {"value": "extended"},
5159 {"value": "both"},
5160 {"value": "disable"},
5161 ],
5162 },
5163 "keep_alive_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5164 "holdtime_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5165 "connect_timer": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5166 "unsuppress_map": {"v_range": [["v6.0.0", ""]], "type": "string"},
5167 "unsuppress_map6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5168 "update_source": {"v_range": [["v6.0.0", ""]], "type": "string"},
5169 "weight": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5170 "restart_time": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5171 "additional_path": {
5172 "v_range": [["v6.2.0", ""]],
5173 "type": "string",
5174 "options": [
5175 {"value": "send"},
5176 {"value": "receive"},
5177 {"value": "both"},
5178 {"value": "disable"},
5179 ],
5180 },
5181 "additional_path6": {
5182 "v_range": [["v6.2.0", ""]],
5183 "type": "string",
5184 "options": [
5185 {"value": "send"},
5186 {"value": "receive"},
5187 {"value": "both"},
5188 {"value": "disable"},
5189 ],
5190 },
5191 "additional_path_vpnv4": {
5192 "v_range": [["v7.2.0", ""]],
5193 "type": "string",
5194 "options": [
5195 {"value": "send"},
5196 {"value": "receive"},
5197 {"value": "both"},
5198 {"value": "disable"},
5199 ],
5200 },
5201 "additional_path_vpnv6": {
5202 "v_range": [["v7.4.2", ""]],
5203 "type": "string",
5204 "options": [
5205 {"value": "send"},
5206 {"value": "receive"},
5207 {"value": "both"},
5208 {"value": "disable"},
5209 ],
5210 },
5211 "adv_additional_path": {"v_range": [["v6.2.0", ""]], "type": "integer"},
5212 "adv_additional_path6": {
5213 "v_range": [["v6.2.0", ""]],
5214 "type": "integer",
5215 },
5216 "adv_additional_path_vpnv4": {
5217 "v_range": [["v7.2.0", ""]],
5218 "type": "integer",
5219 },
5220 "adv_additional_path_vpnv6": {
5221 "v_range": [["v7.4.2", ""]],
5222 "type": "integer",
5223 },
5224 "password": {"v_range": [["v7.2.4", ""]], "type": "string"},
5225 "auth_options": {"v_range": [["v7.4.2", ""]], "type": "string"},
5226 },
5227 "v_range": [["v6.0.0", ""]],
5228 },
5229 "neighbor_range": {
5230 "type": "list",
5231 "elements": "dict",
5232 "children": {
5233 "id": {
5234 "v_range": [["v6.0.0", ""]],
5235 "type": "integer",
5236 "required": True,
5237 },
5238 "prefix": {"v_range": [["v6.0.0", ""]], "type": "string"},
5239 "max_neighbor_num": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5240 "neighbor_group": {"v_range": [["v6.0.0", ""]], "type": "string"},
5241 },
5242 "v_range": [["v6.0.0", ""]],
5243 },
5244 "neighbor_range6": {
5245 "type": "list",
5246 "elements": "dict",
5247 "children": {
5248 "id": {
5249 "v_range": [["v6.0.0", ""]],
5250 "type": "integer",
5251 "required": True,
5252 },
5253 "prefix6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5254 "max_neighbor_num": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5255 "neighbor_group": {"v_range": [["v6.0.0", ""]], "type": "string"},
5256 },
5257 "v_range": [["v6.0.0", ""]],
5258 },
5259 "network": {
5260 "type": "list",
5261 "elements": "dict",
5262 "children": {
5263 "id": {
5264 "v_range": [["v6.0.0", ""]],
5265 "type": "integer",
5266 "required": True,
5267 },
5268 "prefix": {"v_range": [["v6.0.0", ""]], "type": "string"},
5269 "network_import_check": {
5270 "v_range": [["v7.0.4", ""]],
5271 "type": "string",
5272 "options": [
5273 {"value": "global"},
5274 {"value": "enable"},
5275 {"value": "disable"},
5276 ],
5277 },
5278 "backdoor": {
5279 "v_range": [["v6.0.0", ""]],
5280 "type": "string",
5281 "options": [{"value": "enable"}, {"value": "disable"}],
5282 },
5283 "route_map": {"v_range": [["v6.0.0", ""]], "type": "string"},
5284 "prefix_name": {"v_range": [["v7.6.0", ""]], "type": "string"},
5285 },
5286 "v_range": [["v6.0.0", ""]],
5287 },
5288 "network6": {
5289 "type": "list",
5290 "elements": "dict",
5291 "children": {
5292 "id": {
5293 "v_range": [["v6.0.0", ""]],
5294 "type": "integer",
5295 "required": True,
5296 },
5297 "prefix6": {"v_range": [["v6.0.0", ""]], "type": "string"},
5298 "network_import_check": {
5299 "v_range": [["v7.0.4", ""]],
5300 "type": "string",
5301 "options": [
5302 {"value": "global"},
5303 {"value": "enable"},
5304 {"value": "disable"},
5305 ],
5306 },
5307 "backdoor": {
5308 "v_range": [["v6.0.0", ""]],
5309 "type": "string",
5310 "options": [{"value": "enable"}, {"value": "disable"}],
5311 },
5312 "route_map": {"v_range": [["v6.0.0", ""]], "type": "string"},
5313 },
5314 "v_range": [["v6.0.0", ""]],
5315 },
5316 "admin_distance": {
5317 "type": "list",
5318 "elements": "dict",
5319 "children": {
5320 "id": {
5321 "v_range": [["v6.0.0", ""]],
5322 "type": "integer",
5323 "required": True,
5324 },
5325 "neighbour_prefix": {"v_range": [["v6.0.0", ""]], "type": "string"},
5326 "route_list": {"v_range": [["v6.0.0", ""]], "type": "string"},
5327 "distance": {"v_range": [["v6.0.0", ""]], "type": "integer"},
5328 },
5329 "v_range": [["v6.0.0", ""]],
5330 },
5331 "vrf": {
5332 "type": "list",
5333 "elements": "dict",
5334 "children": {
5335 "vrf": {
5336 "v_range": [["v7.2.0", ""]],
5337 "type": "string",
5338 "required": True,
5339 },
5340 "role": {
5341 "v_range": [["v7.2.0", ""]],
5342 "type": "string",
5343 "options": [
5344 {"value": "standalone"},
5345 {"value": "ce"},
5346 {"value": "pe"},
5347 ],
5348 },
5349 "rd": {"v_range": [["v7.2.0", ""]], "type": "string"},
5350 "export_rt": {
5351 "type": "list",
5352 "elements": "dict",
5353 "children": {
5354 "route_target": {
5355 "v_range": [["v7.2.0", ""]],
5356 "type": "string",
5357 "required": True,
5358 }
5359 },
5360 "v_range": [["v7.2.0", ""]],
5361 },
5362 "import_rt": {
5363 "type": "list",
5364 "elements": "dict",
5365 "children": {
5366 "route_target": {
5367 "v_range": [["v7.2.0", ""]],
5368 "type": "string",
5369 "required": True,
5370 }
5371 },
5372 "v_range": [["v7.2.0", ""]],
5373 },
5374 "import_route_map": {"v_range": [["v7.2.0", ""]], "type": "string"},
5375 "leak_target": {
5376 "type": "list",
5377 "elements": "dict",
5378 "children": {
5379 "vrf": {
5380 "v_range": [["v7.2.0", ""]],
5381 "type": "string",
5382 "required": True,
5383 },
5384 "route_map": {"v_range": [["v7.2.0", ""]], "type": "string"},
5385 "interface": {"v_range": [["v7.2.0", ""]], "type": "string"},
5386 },
5387 "v_range": [["v7.2.0", ""]],
5388 },
5389 },
5390 "v_range": [["v7.2.0", ""]],
5391 },
5392 "vrf6": {
5393 "type": "list",
5394 "elements": "dict",
5395 "children": {
5396 "vrf": {
5397 "v_range": [["v7.2.0", ""]],
5398 "type": "string",
5399 "required": True,
5400 },
5401 "role": {
5402 "v_range": [["v7.4.2", ""]],
5403 "type": "string",
5404 "options": [
5405 {"value": "standalone"},
5406 {"value": "ce"},
5407 {"value": "pe"},
5408 ],
5409 },
5410 "rd": {"v_range": [["v7.4.2", ""]], "type": "string"},
5411 "export_rt": {
5412 "type": "list",
5413 "elements": "dict",
5414 "children": {
5415 "route_target": {
5416 "v_range": [["v7.4.2", ""]],
5417 "type": "string",
5418 "required": True,
5419 }
5420 },
5421 "v_range": [["v7.4.2", ""]],
5422 },
5423 "import_rt": {
5424 "type": "list",
5425 "elements": "dict",
5426 "children": {
5427 "route_target": {
5428 "v_range": [["v7.4.2", ""]],
5429 "type": "string",
5430 "required": True,
5431 }
5432 },
5433 "v_range": [["v7.4.2", ""]],
5434 },
5435 "import_route_map": {"v_range": [["v7.4.2", ""]], "type": "string"},
5436 "leak_target": {
5437 "type": "list",
5438 "elements": "dict",
5439 "children": {
5440 "vrf": {
5441 "v_range": [["v7.2.0", ""]],
5442 "type": "string",
5443 "required": True,
5444 },
5445 "route_map": {"v_range": [["v7.2.0", ""]], "type": "string"},
5446 "interface": {"v_range": [["v7.2.0", ""]], "type": "string"},
5447 },
5448 "v_range": [["v7.2.0", ""]],
5449 },
5450 },
5451 "v_range": [["v7.2.0", ""]],
5452 },
5453 "redistribute": {
5454 "type": "list",
5455 "elements": "dict",
5456 "children": {
5457 "name": {
5458 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5459 "type": "string",
5460 "required": True,
5461 },
5462 "status": {
5463 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5464 "type": "string",
5465 "options": [{"value": "enable"}, {"value": "disable"}],
5466 },
5467 "route_map": {
5468 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5469 "type": "string",
5470 },
5471 },
5472 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5473 },
5474 "redistribute6": {
5475 "type": "list",
5476 "elements": "dict",
5477 "children": {
5478 "name": {
5479 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5480 "type": "string",
5481 "required": True,
5482 },
5483 "status": {
5484 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5485 "type": "string",
5486 "options": [{"value": "enable"}, {"value": "disable"}],
5487 },
5488 "route_map": {
5489 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5490 "type": "string",
5491 },
5492 },
5493 "v_range": [["v6.0.0", "v7.0.5"], ["v7.2.0", "v7.2.0"]],
5494 },
5495 "vrf_leak": {
5496 "type": "list",
5497 "elements": "dict",
5498 "children": {
5499 "vrf": {
5500 "v_range": [["v6.4.0", "v7.0.12"]],
5501 "type": "string",
5502 "required": True,
5503 },
5504 "target": {
5505 "type": "list",
5506 "elements": "dict",
5507 "children": {
5508 "vrf": {
5509 "v_range": [["v6.4.0", "v7.0.12"]],
5510 "type": "string",
5511 "required": True,
5512 },
5513 "route_map": {
5514 "v_range": [["v6.4.0", "v7.0.12"]],
5515 "type": "string",
5516 },
5517 "interface": {
5518 "v_range": [["v6.4.0", "v7.0.12"]],
5519 "type": "string",
5520 },
5521 },
5522 "v_range": [["v6.4.0", "v7.0.12"]],
5523 },
5524 },
5525 "v_range": [["v6.4.0", "v7.0.12"]],
5526 },
5527 "vrf_leak6": {
5528 "type": "list",
5529 "elements": "dict",
5530 "children": {
5531 "vrf": {
5532 "v_range": [["v7.0.1", "v7.0.12"]],
5533 "type": "string",
5534 "required": True,
5535 },
5536 "target": {
5537 "type": "list",
5538 "elements": "dict",
5539 "children": {
5540 "vrf": {
5541 "v_range": [["v7.0.1", "v7.0.12"]],
5542 "type": "string",
5543 "required": True,
5544 },
5545 "route_map": {
5546 "v_range": [["v7.0.1", "v7.0.12"]],
5547 "type": "string",
5548 },
5549 "interface": {
5550 "v_range": [["v7.0.1", "v7.0.12"]],
5551 "type": "string",
5552 },
5553 },
5554 "v_range": [["v7.0.1", "v7.0.12"]],
5555 },
5556 },
5557 "v_range": [["v7.0.1", "v7.0.12"]],
5558 },
5559 },
5560 }
5561
5562
5563 def main():
5564 module_spec = schema_to_module_spec(versioned_schema)
5565 mkeyname = None
5566 fields = {
5567 "access_token": {"required": False, "type": "str", "no_log": True},
5568 "enable_log": {"required": False, "type": "bool", "default": False},
5569 "vdom": {"required": False, "type": "str", "default": "root"},
5570 "member_path": {"required": False, "type": "str"},
5571 "member_state": {
5572 "type": "str",
5573 "required": False,
5574 "choices": ["present", "absent"],
5575 },
5576 "router_bgp": {
5577 "required": False,
5578 "type": "dict",
5579 "default": None,
5580 "options": {},
5581 },
5582 }
5583 for attribute_name in module_spec["options"]:
5584 fields["router_bgp"]["options"][attribute_name] = module_spec["options"][
5585 attribute_name
5586 ]
5587 if mkeyname and mkeyname == attribute_name:
5588 fields["router_bgp"]["options"][attribute_name]["required"] = True
5589
5590 module = AnsibleModule(argument_spec=fields, supports_check_mode=True)
5591 check_legacy_fortiosapi(module)
5592
5593 is_error = False
5594 has_changed = False
5595 result = None
5596 diff = None
5597
5598 versions_check_result = None
5599 if module._socket_path:
5600 connection = Connection(module._socket_path)
5601 if "access_token" in module.params:
5602 connection.set_custom_option("access_token", module.params["access_token"])
5603
5604 if "enable_log" in module.params:
5605 connection.set_custom_option("enable_log", module.params["enable_log"])
5606 else:
5607 connection.set_custom_option("enable_log", False)
5608 fos = FortiOSHandler(connection, module, mkeyname, admin_passwd_header=False)
5609 versions_check_result = check_schema_versioning(
5610 fos, versioned_schema, "router_bgp"
5611 )
5612
5613 is_error, has_changed, result, diff = fortios_router(
5614 module.params, fos, module.check_mode
5615 )
5616
5617 else:
5618 module.fail_json(**FAIL_SOCKET_MSG)
5619
5620 if versions_check_result and versions_check_result["matched"] is False:
5621 module.warn(
5622 "Ansible has detected version mismatch between FortOS system and your playbook, see more details by specifying option -vvv"
5623 )
5624
5625 if not is_error:
5626 if versions_check_result and versions_check_result["matched"] is False:
5627 module.exit_json(
5628 changed=has_changed,
5629 version_check_warning=versions_check_result,
5630 meta=result,
5631 diff=diff,
5632 )
5633 else:
5634 module.exit_json(changed=has_changed, meta=result, diff=diff)
5635 else:
5636 if versions_check_result and versions_check_result["matched"] is False:
5637 module.fail_json(
5638 msg="Error in repo",
5639 version_check_warning=versions_check_result,
5640 meta=result,
5641 )
5642 else:
5643 module.fail_json(msg="Error in repo", meta=result)
5644
5645
5646 if __name__ == "__main__":
5647 main()