diff options
| author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-09-03 13:35:19 -0700 |
|---|---|---|
| committer | Anuradha Karuppiah <anuradhak@nvidia.com> | 2020-12-21 08:41:17 -0800 |
| commit | 6c111b51a1647ca994b061c0adc9c65023ea6814 (patch) | |
| tree | 4d14dd04c1154bdd89cf3e72d088bfb4ca017ca8 | |
| parent | 963b0c55fd9eea08de13ce16764c62f1628e26ed (diff) | |
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>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
| -rw-r--r-- | bgpd/bgp_evpn_vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ -2621,10 +2621,14 @@ static void evpn_show_route_rd(struct vty *vty, struct bgp *bgp, /* 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; } |
