]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix 'show bgp neighbors' output 15719/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 10 Apr 2024 12:13:54 +0000 (14:13 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 10 Apr 2024 12:15:06 +0000 (14:15 +0200)
commit34738e35521f16da38ae22e149a610ce4ee466cd
tree379bfa1e628914702fb8c1b0b2e18827cc7fb1cf
parent5ff94749d3d3cc59411cdf2c366530733fa04176
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>
bgpd/bgp_vty.c