Skip to content

Commit

Permalink
issue_3941_commit_5
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaaloul committed Jun 20, 2024
1 parent 3a4d6d9 commit cbe2cf4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ router bgp 65101
neighbor EVPN-OVERLAY-PEERS domain remote
neighbor EVPN-OVERLAY-PEERS encapsulation vxlan
no neighbor MLAG-IPv4-UNDERLAY-PEER activate
neighbor 10.100.100.1 activate
neighbor 10.100.100.1 default-route
neighbor 10.100.100.2 activate
neighbor 10.100.100.2 default-route route-map RM_DEFAULT_ROUTE
neighbor 10.100.100.3 activate
neighbor 10.100.100.3 default-route rcf RCF_DEFAULT_ROUTE()
next-hop resolution disabled
neighbor default next-hop-self received-evpn-routes route-type ip-prefix inter-domain
route import ethernet-segment ip mass-withdraw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ router bgp 65101
neighbor EVPN-OVERLAY-PEERS domain remote
neighbor EVPN-OVERLAY-PEERS encapsulation vxlan
no neighbor MLAG-IPv4-UNDERLAY-PEER activate
neighbor 10.100.100.1 activate
neighbor 10.100.100.1 default-route
neighbor 10.100.100.2 activate
neighbor 10.100.100.2 default-route route-map RM_DEFAULT_ROUTE
neighbor 10.100.100.3 activate
neighbor 10.100.100.3 default-route rcf RCF_DEFAULT_ROUTE()
next-hop resolution disabled
neighbor default next-hop-self received-evpn-routes route-type ip-prefix inter-domain
route import ethernet-segment ip mass-withdraw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ router_bgp:
enable: true
inter_domain: true
domain_identifier: "65101:0"
neighbors:
- ip_address: 10.100.100.1
activate: true
default_route:
enabled: true
- ip_address: 10.100.100.2
activate: true
default_route:
enabled: true
route_map: RM_DEFAULT_ROUTE
- ip_address: 10.100.100.3
activate: true
default_route:
enabled: true
rcf: RCF_DEFAULT_ROUTE()
peer_groups:
- name: EVPN-OVERLAY-PEERS
activate: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,15 @@ router bgp {{ router_bgp.as }}
{% if neighbor.rcf_out is arista.avd.defined %}
neighbor {{ neighbor.ip_address }} rcf out {{ neighbor.rcf_out }}
{% endif %}
{% if neighbor.default_route.enabled is arista.avd.defined(true) %}
{% set neighbor_default_route_cli = "neighbor " ~ neighbor.ip_address ~ " default-route" %}
{% if neighbor.default_route.rcf is arista.avd.defined %}
{% set neighbor_default_route_cli = neighbor_default_route_cli ~ " rcf " ~ neighbor.default_route.rcf %}
{% elif neighbor.default_route.route_map is arista.avd.defined %}
{% set neighbor_default_route_cli = neighbor_default_route_cli ~ " route-map " ~ neighbor.default_route.route_map %}
{% endif %}
{{ neighbor_default_route_cli }}
{% endif %}
{% endfor %}
{% if router_bgp.address_family_evpn.next_hop.resolution_disabled is arista.avd.defined(true) %}
next-hop resolution disabled
Expand Down

0 comments on commit cbe2cf4

Please sign in to comment.