diff options
| author | Chirag Shah <chirag@nvidia.com> | 2022-01-26 15:48:44 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-12-09 12:39:08 -0500 |
| commit | 3f3c923d7a2175f909e5c20e5f91548cf5c124bb (patch) | |
| tree | e2de8ad0e0ec72c7be20f576c46eeca732c110ca /pimd/pim_instance.c | |
| parent | 7ec7446ea82dea070673337931f30564e8ac03f7 (diff) | |
bgpd: copy asn of src vrf to evpn type5 route
When a unicast route from source vrf is imported into
evpn as type5 route, prepend the asn of the source vrf into
type5 asn path list.
The condition of evpn type5 prefix path info is present but
source vrf route has been cleared via clear command. In this
case existing path info needs to rewrite the source vrf asn.
prepends asn of the source vrf, but the further condition
for existing path attribute for the same route needs to prepend
source vrf asn.
Ticket: #2943080
Testing:
Before fix:
r4# clear ip bgp vrf overlay prefix 0.0.0.0/0
Route Distinguisher: 128.117.243.209:4
*> [5]:[0]:[0]:[0.0.0.0]
203.0.113.1 0 0 194 ? <--- 64512 is missing
ET:8 RT:64532:104001 Rmac:06:ec:bf:59:e8:93
After fix:
r4# clear ip bgp vrf overlay prefix 0.0.0.0/0
Route's source vrf bgp output containing ASN 64512:
r4# show bgp vrf overlay
BGP table version is 2, local router ID is 128.117.243.209, vrf id 10
Default local pref 100, local AS 64512
...
Notice after clear command source vrf asn 64512 is retained.
Route Distinguisher: 128.117.243.209:4
*> [5]:[0]:[0]:[0.0.0.0]
203.0.113.1 0 0 64512 194 ?
ET:8 RT:64532:104001 Rmac:06:ec:bf:59:e8:93
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'pimd/pim_instance.c')
0 files changed, 0 insertions, 0 deletions
