diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2021-09-22 09:59:44 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2021-09-22 10:01:06 +0200 |
commit | 700ddfed69f482e1bb0408530b071a1041b63746 (patch) | |
tree | d2bb080b106862e4270be14d0dadb58a2da33ff4 /bgpd/bgp_route.c | |
parent | Merge pull request #9645 from mjstapp/fix_show_bgp_lu (diff) | |
download | frr-700ddfed69f482e1bb0408530b071a1041b63746.tar.xz frr-700ddfed69f482e1bb0408530b071a1041b63746.zip |
bgpd: add carriage return when dumping tags from all evpn rds
following command: show bgp l2vpn evpn rd all tags
does not append rd contexts one after the other
before:
dut-vm# show bgp l2vpn evpn rd all tags
Network Next Hop In tag/Out tag
Route Distinguisher: 65000:999
*> [5]:[0]:[24]:[10.40.1.0]
10.209.36.1 Route Distinguisher: 65000:1000
*> [5]:[0]:[24]:[10.40.1.0]
10.209.36.1
Displayed 2 out of 2 total prefixes
after:
dut-vm# show bgp l2vpn evpn rd all tags
Network Next Hop In tag/Out tag
Route Distinguisher: 65000:999
*> [5]:[0]:[24]:[10.40.1.0]
10.209.36.1
Route Distinguisher: 65000:1000
*> [5]:[0]:[24]:[10.40.1.0]
10.209.36.1
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 44629b3d7..fc9717845 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -9314,7 +9314,8 @@ void route_vty_out_tag(struct vty *vty, const struct prefix *p, vty_out(vty, "notag/%d", label); vty_out(vty, "\n"); } - } + } else if (!json) + vty_out(vty, "\n"); } void route_vty_out_overlay(struct vty *vty, const struct prefix *p, |