Skip to content

Commit

Permalink
Adding settings under vrfs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed May 28, 2024
1 parent fc3ec5c commit b277418
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ router bgp 65001
redistribute isis rcf Router_BGP_Isis()
!
vrf VRF01
no bgp redistribute-internal
!
address-family flow-spec ipv4
bgp missing-policy direction in action permit
Expand All @@ -104,6 +105,7 @@ router bgp 65001
neighbor 1.2.3.4 route-map FOO in
neighbor 1.2.3.4 route-map BAR out
network 2.3.4.0/24 route-map BARFOO
no bgp redistribute-internal
redistribute connected rcf VRF_AFIPV4_RCF_CONNECTED_1()
redistribute static route-map VRF_AFIPV4_RM_STATIC_1
!
Expand All @@ -130,6 +132,7 @@ router bgp 65001
neighbor aa::2 rcf in VRF_AFIPV6_RCF_IN()
neighbor aa::2 rcf out VRF_AFIPV6_RCF_OUT()
network aa::/64
no bgp redistribute-internal
redistribute connected rcf VRF_AFIPV6_RCF_CONNECTED()
redistribute isis include leaked
redistribute static route-map VRF_AFIPV6_RM_STATIC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ router bgp 65001
redistribute isis rcf Router_BGP_Isis()
!
vrf VRF01
no bgp redistribute-internal
!
address-family flow-spec ipv4
bgp missing-policy direction in action permit
Expand All @@ -57,6 +58,7 @@ router bgp 65001
neighbor 1.2.3.4 route-map FOO in
neighbor 1.2.3.4 route-map BAR out
network 2.3.4.0/24 route-map BARFOO
no bgp redistribute-internal
redistribute connected rcf VRF_AFIPV4_RCF_CONNECTED_1()
redistribute static route-map VRF_AFIPV4_RM_STATIC_1
!
Expand All @@ -83,6 +85,7 @@ router bgp 65001
neighbor aa::2 rcf in VRF_AFIPV6_RCF_IN()
neighbor aa::2 rcf out VRF_AFIPV6_RCF_OUT()
network aa::/64
no bgp redistribute-internal
redistribute connected rcf VRF_AFIPV6_RCF_CONNECTED()
redistribute isis include leaked
redistribute static route-map VRF_AFIPV6_RM_STATIC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ router_bgp:
activate: false
vrfs:
- name: VRF01
bgp:
redistribute_internal: false
address_family_ipv4:
bgp:
missing_policy:
Expand All @@ -44,6 +46,7 @@ router_bgp:
receive: true
send:
ecmp_limit: 4
redistribute_internal: false
neighbors:
- ip_address: 1.2.3.4
activate: true
Expand All @@ -67,6 +70,7 @@ router_bgp:
receive: true
send:
any: true
redistribute_internal: false
neighbors:
- ip_address: aa::1
activate: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;source_interface</samp>](## "router_bgp.address_family_vpn_ipv6.neighbor_default_encapsulation_mpls_next_hop_self.source_interface") | String | | | | |
| [<samp>&nbsp;&nbsp;vrfs</samp>](## "router_bgp.vrfs") | List, items: Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;name</samp>](## "router_bgp.vrfs.[].name") | String | Required, Unique | | | VRF name. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bgp</samp>](## "router_bgp.vrfs.[].bgp") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;redistribute_internal</samp>](## "router_bgp.vrfs.[].bgp.redistribute_internal") | Boolean | | | | Redistribute internal BGP routes. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rd</samp>](## "router_bgp.vrfs.[].rd") | String | | | | Route distinguisher. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;evpn_multicast</samp>](## "router_bgp.vrfs.[].evpn_multicast") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;evpn_multicast_address_family</samp>](## "router_bgp.vrfs.[].evpn_multicast_address_family") | Dictionary | | | | Enable per-AF EVPN multicast settings. |
Expand Down Expand Up @@ -684,6 +686,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ecmp</samp>](## "router_bgp.vrfs.[].address_family_ipv4.bgp.additional_paths.send.ecmp") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ecmp_limit</samp>](## "router_bgp.vrfs.[].address_family_ipv4.bgp.additional_paths.send.ecmp_limit") | Integer | | | Min: 2<br>Max: 64 | Amount of ECMP paths to send. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;limit</samp>](## "router_bgp.vrfs.[].address_family_ipv4.bgp.additional_paths.send.limit") | Integer | | | Min: 2<br>Max: 64 | Amount of paths to send. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;redistribute_internal</samp>](## "router_bgp.vrfs.[].address_family_ipv4.bgp.redistribute_internal") | Boolean | | | | Redistribute internal BGP routes. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;neighbors</samp>](## "router_bgp.vrfs.[].address_family_ipv4.neighbors") | List, items: Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;ip_address</samp>](## "router_bgp.vrfs.[].address_family_ipv4.neighbors.[].ip_address") | String | Required, Unique | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activate</samp>](## "router_bgp.vrfs.[].address_family_ipv4.neighbors.[].activate") | Boolean | | | | |
Expand Down Expand Up @@ -720,6 +723,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ecmp</samp>](## "router_bgp.vrfs.[].address_family_ipv6.bgp.additional_paths.send.ecmp") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ecmp_limit</samp>](## "router_bgp.vrfs.[].address_family_ipv6.bgp.additional_paths.send.ecmp_limit") | Integer | | | Min: 2<br>Max: 64 | Amount of ECMP paths to send. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;limit</samp>](## "router_bgp.vrfs.[].address_family_ipv6.bgp.additional_paths.send.limit") | Integer | | | Min: 2<br>Max: 64 | Amount of paths to send. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;redistribute_internal</samp>](## "router_bgp.vrfs.[].address_family_ipv6.bgp.redistribute_internal") | Boolean | | | | Redistribute internal BGP routes. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;neighbors</samp>](## "router_bgp.vrfs.[].address_family_ipv6.neighbors") | List, items: Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;ip_address</samp>](## "router_bgp.vrfs.[].address_family_ipv6.neighbors.[].ip_address") | String | Required, Unique | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activate</samp>](## "router_bgp.vrfs.[].address_family_ipv6.neighbors.[].activate") | Boolean | | | | |
Expand Down Expand Up @@ -1874,6 +1878,10 @@

# VRF name.
- name: <str; required; unique>
bgp:

# Redistribute internal BGP routes.
redistribute_internal: <bool>

# Route distinguisher.
rd: <str>
Expand Down Expand Up @@ -2116,6 +2124,9 @@

# Amount of paths to send.
limit: <int; 2-64>

# Redistribute internal BGP routes.
redistribute_internal: <bool>
neighbors:
- ip_address: <str; required; unique>
activate: <bool>
Expand Down Expand Up @@ -2177,6 +2188,9 @@

# Amount of paths to send.
limit: <int; 2-64>

# Redistribute internal BGP routes.
redistribute_internal: <bool>
neighbors:
- ip_address: <str; required; unique>
activate: <bool>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,12 @@ keys:
description: VRF name.
convert_types:
- int
bgp:
type: dict
keys:
redistribute_internal:
type: bool
description: Redistribute internal BGP routes.
rd:
type: str
description: Route distinguisher.
Expand Down Expand Up @@ -2617,6 +2623,9 @@ keys:
- str
min: 2
max: 64
redistribute_internal:
type: bool
description: Redistribute internal BGP routes.
neighbors:
type: list
primary_key: ip_address
Expand Down Expand Up @@ -2760,6 +2769,9 @@ keys:
- str
min: 2
max: 64
redistribute_internal:
type: bool
description: Redistribute internal BGP routes.
neighbors:
type: list
primary_key: ip_address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,11 @@ router bgp {{ router_bgp.as }}
network {{ network.prefix }}
{% endif %}
{% endfor %}
{% if vrf.bgp.redistribute_internal is arista.avd.defined(true) %}
bgp redistribute-internal
{% elif vrf.bgp.redistribute_internal is arista.avd.defined(false) %}
no bgp redistribute-internal
{% endif %}
{% for aggregate_address in vrf.aggregate_addresses | arista.avd.natural_sort('prefix') %}
{% set aggregate_address_cli = "aggregate-address " ~ aggregate_address.prefix %}
{% if aggregate_address.as_set is arista.avd.defined(true) %}
Expand Down Expand Up @@ -1751,6 +1756,11 @@ router bgp {{ router_bgp.as }}
{% endif %}
{{ network_cli }}
{% endfor %}
{% if vrf.address_family_ipv4.bgp.redistribute_internal is arista.avd.defined(true) %}
bgp redistribute-internal
{% elif vrf.address_family_ipv4.bgp.redistribute_internal is arista.avd.defined(false) %}
no bgp redistribute-internal
{% endif %}
{% for redistribute_route in vrf.address_family_ipv4.redistribute_routes | arista.avd.natural_sort('source_protocol') %}
{% if redistribute_route.source_protocol is arista.avd.defined %}
{% set redistribute_route_cli = "redistribute " ~ redistribute_route.source_protocol %}
Expand Down Expand Up @@ -1875,6 +1885,11 @@ router bgp {{ router_bgp.as }}
{% endif %}
{{ network_cli }}
{% endfor %}
{% if vrf.address_family_ipv6.bgp.redistribute_internal is arista.avd.defined(true) %}
bgp redistribute-internal
{% elif vrf.address_family_ipv6.bgp.redistribute_internal is arista.avd.defined(false) %}
no bgp redistribute-internal
{% endif %}
{% for redistribute_route in vrf.address_family_ipv6.redistribute_routes | arista.avd.natural_sort('source_protocol') %}
{% if redistribute_route.source_protocol is arista.avd.defined %}
{% set redistribute_route_cli = "redistribute " ~ redistribute_route.source_protocol %}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b277418

Please sign in to comment.