From 6c111b51a1647ca994b061c0adc9c65023ea6814 Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Thu, 3 Sep 2020 13:35:19 -0700 Subject: [PATCH] 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 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --- bgpd/bgp_evpn_vty.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index f957103df7..0f7320562c 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -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;