Skip to content

Commit

Permalink
Fix(eos_cli_config_gen): Fix the command for next-hop mpls resolution…
Browse files Browse the repository at this point in the history
… in address-family evpn (#4490)
  • Loading branch information
laxmikantchintakindi authored Sep 18, 2024
1 parent 8cd95b8 commit cbf8ea3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ ASN Notation: asplain

#### Router BGP EVPN Address Family

- Next-hop MPLS resolution Primary-RIB : tunnel-rib-colored system-colored-tunnel-rib
- Next-hop MPLS resolution Primary-RIB : tunnel-rib colored system-colored-tunnel-rib
- Next-hop MPLS resolution Secondary-RIB : tunnel-rib test-rib
- Next-hop MPLS resolution Tertiary-RIB : system-connected
- Layer-2 In-place FEC update tracking timeout: 100 seconds
Expand Down Expand Up @@ -133,7 +133,7 @@ router bgp 65101
address-family evpn
bgp additional-paths send limit 10
neighbor default encapsulation mpls next-hop-self source-interface Loopback0
next-hop mpls resolution ribs tunnel-rib-colored system-colored-tunnel-rib tunnel-rib test-rib system-connected
next-hop mpls resolution ribs tunnel-rib colored system-colored-tunnel-rib tunnel-rib test-rib system-connected
neighbor EVPN-OVERLAY-PEERS activate
neighbor 192.168.255.3 activate
neighbor 192.168.255.4 rcf in Address_Family_EVPN_In()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ router bgp 65101
address-family evpn
bgp additional-paths send limit 10
neighbor default encapsulation mpls next-hop-self source-interface Loopback0
next-hop mpls resolution ribs tunnel-rib-colored system-colored-tunnel-rib tunnel-rib test-rib system-connected
next-hop mpls resolution ribs tunnel-rib colored system-colored-tunnel-rib tunnel-rib test-rib system-connected
neighbor EVPN-OVERLAY-PEERS activate
neighbor 192.168.255.3 activate
neighbor 192.168.255.4 rcf in Address_Family_EVPN_In()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ ASN Notation: {{ router_bgp.as_notation | arista.avd.default('asplain') }}
{% set rib_position = ["Primary", "Secondary", "Tertiary" ] %}
{% for rib in router_bgp.address_family_evpn.next_hop_mpls_resolution_ribs %}
{% if rib.rib_type is arista.avd.defined("tunnel-rib-colored") %}
{% set evpn_mpls_resolution_rib = "tunnel-rib-colored system-colored-tunnel-rib" %}
{% set evpn_mpls_resolution_rib = "tunnel-rib colored system-colored-tunnel-rib" %}
{% elif rib.rib_type is arista.avd.defined("tunnel-rib") and rib.rib_name is arista.avd.defined %}
{% set evpn_mpls_resolution_rib = "tunnel-rib " ~ rib.rib_name %}
{% elif rib.rib_type is arista.avd.defined %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ router bgp {{ router_bgp.as }}
{% set evpn_mpls_resolution_ribs = [] %}
{% for rib in router_bgp.address_family_evpn.next_hop_mpls_resolution_ribs %}
{% if rib.rib_type is arista.avd.defined("tunnel-rib-colored") %}
{% do evpn_mpls_resolution_ribs.append("tunnel-rib-colored system-colored-tunnel-rib") %}
{% do evpn_mpls_resolution_ribs.append("tunnel-rib colored system-colored-tunnel-rib") %}
{% elif rib.rib_type is arista.avd.defined("tunnel-rib") and rib.rib_name is arista.avd.defined() %}
{% do evpn_mpls_resolution_ribs.append("tunnel-rib " ~ rib.rib_name) %}
{% elif rib.rib_type is arista.avd.defined %}
Expand Down

0 comments on commit cbf8ea3

Please sign in to comment.