summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-04-11 13:40:06 +0300
committerGitHub <noreply@github.com>2024-04-11 13:40:06 +0300
commit1596d99352edca791311b39e504d16f006dceac5 (patch)
tree3757bc30cb4d746db6927917aff4a65803b185ca
parent3d3f9684aea3fa9fccb2ab6e825ca53f3649bd0c (diff)
parent34738e35521f16da38ae22e149a610ce4ee466cd (diff)
Merge pull request #15719 from pguibert6WIND/show_bgp_neighbors_extra_line
bgpd: fix 'show bgp neighbors' output
-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(