]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: add carriage return when dumping tags from all evpn rds 9653/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 22 Sep 2021 07:59:44 +0000 (09:59 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 22 Sep 2021 08:01:06 +0000 (10:01 +0200)
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>
bgpd/bgp_route.c

index 44629b3d7c9edfad909ae36e62bc3e66cbb8c734..fc971784500696c5bf97163f58190bc79bed46d9 100644 (file)
@@ -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,