mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-25 21:37:29 +00:00
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: 0e4e879b40
("bgpd: fix silly format string SNAFU")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
5ff94749d3
commit
34738e3552
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user