summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2024-04-10 14:13:54 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2024-04-10 14:15:06 +0200
commit34738e35521f16da38ae22e149a610ce4ee466cd (patch)
tree379bfa1e628914702fb8c1b0b2e18827cc7fb1cf
parent5ff94749d3d3cc59411cdf2c366530733fa04176 (diff)
bgpd: fix 'show bgp neighbors' output
The 'show bgp neighbors' output appends additional lines after GR mode helpers. > # show bgp neighbors > [..] > End-of-RIB received: IPv4 VPN > Local GR Mode: Helper* > > Remote GR Mode: Helper > > R bit: True > Fix this by not appending the extra line feed. > # show bgp neighbors > [..] > End-of-RIB received: IPv4 VPN > Local GR Mode: Helper* > Remote GR Mode: Helper > R bit: True Fixes: 0e4e879b4084 ("bgpd: fix silly format string SNAFU") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 0a1cf3362b..bcd029dcad 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -12750,7 +12750,7 @@ static void bgp_show_neighbor_graceful_restart_remote_mode(struct vty *vty,
if (json)
json_object_string_add(json, "remoteGrMode", mode);
else
- vty_out(vty, "%s\n", mode);
+ vty_out(vty, "%s", mode);
}
static void bgp_show_neighbor_graceful_restart_local_mode(struct vty *vty,
@@ -12782,7 +12782,7 @@ static void bgp_show_neighbor_graceful_restart_local_mode(struct vty *vty,
if (json)
json_object_string_add(json, "localGrMode", mode);
else
- vty_out(vty, "%s\n", mode);
+ vty_out(vty, "%s", mode);
}
static void bgp_show_neighbor_graceful_restart_capability_per_afi_safi(