forked from Mirror/frr
bgpd: add missing type-1 and type-4 route descriptions to the legend
Sample output - >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> root@torm-11:mgmt:~# net show bgp l2vpn evpn route rd 27.0.0.16:3 EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP] EVPN type-2 prefix: [2]:[EthTag]:[MAClen]:[MAC] EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP] EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP] EVPN type-5 prefix: [5]:[EthTag]:[IPlen]:[IP] BGP routing table entry for 27.0.0.16:3:[1]:[0]:[03:44:38:39:ff:ff:01:00:00:01]:[32]:[0.0.0.0] Paths: (4 available, best #2) Advertised to non peer-group peers: spine-1(swp1) spine-1(swp2) spine-2(swp3) spine-2(swp4) 4435 5551 27.0.0.16 from spine-1(swp2) (27.0.0.13) Origin IGP, valid, external Extended Community: RT:5551:1009 ET:8 Last update: Thu Sep 3 21:01:53 2020 4435 5551 27.0.0.16 from spine-1(swp1) (27.0.0.13) Origin IGP, valid, external, bestpath-from-AS 4435, best (Router ID) Extended Community: RT:5551:1009 ET:8 Last update: Thu Sep 3 21:01:53 2020 4435 5551 27.0.0.16 from spine-2(swp3) (27.0.0.14) Origin IGP, valid, external Extended Community: RT:5551:1009 ET:8 Last update: Thu Sep 3 21:01:53 2020 4435 5551 27.0.0.16 from spine-2(swp4) (27.0.0.14) Origin IGP, valid, external Extended Community: RT:5551:1009 ET:8 Last update: Thu Sep 3 21:01:53 2020 Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
This commit is contained in:
parent
963b0c55fd
commit
6c111b51a1
|
@ -2620,10 +2620,14 @@ static void evpn_show_route_rd(struct vty *vty, struct bgp *bgp,
|
|||
if (pi) {
|
||||
/* RD header and legend - once overall. */
|
||||
if (rd_header && !json) {
|
||||
vty_out(vty,
|
||||
"EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP]\n");
|
||||
vty_out(vty,
|
||||
"EVPN type-2 prefix: [2]:[EthTag]:[MAClen]:[MAC]\n");
|
||||
vty_out(vty,
|
||||
"EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP]\n");
|
||||
vty_out(vty,
|
||||
"EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP]\n");
|
||||
vty_out(vty,
|
||||
"EVPN type-5 prefix: [5]:[EthTag]:[IPlen]:[IP]\n\n");
|
||||
rd_header = 0;
|
||||
|
|
Loading…
Reference in a new issue