From: Philippe Guibert Date: Mon, 28 Oct 2024 15:04:45 +0000 (+0100) Subject: bgpd: fix blank line in running-config with bmp listener cmd X-Git-Tag: base_10.3~295^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9a33ee18bfe2769e173911d69cee64b78143184b;p=mirror%2Ffrr.git bgpd: fix blank line in running-config with bmp listener cmd An extra blank line is added in show running-config with BMP: > ubuntu2204hwe(config)# router bgp 65500 > ubuntu2204hwe(config-router)# bmp targets tgt > ubuntu2204hwe(config-bgp-bmp)# bmp monitor ipv4 unicast pre-policy > ubuntu2204hwe(config-bgp-bmp)# bmp listener 192.0.2.100 port 44 > ubuntu2204hwe(config-bgp-bmp)# do show running-config > > router bgp 65500 > [..] > bmp targets tgt > bmp monitor ipv4 unicast pre-policy > <-- blank line > bmp listener 192.0.2.100 port 44 > exit Remove the blank line. Fixes: ed18356f1f2d ("bgpd/bmp: BMP implementation") Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index 4d9e580a23..2e3a0388d0 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -2988,8 +2988,7 @@ static int bmp_config_write(struct bgp *bgp, struct vty *vty) afi2str_lower(afi), safi2str(safi)); } frr_each (bmp_listeners, &bt->listeners, bl) - vty_out(vty, " \n bmp listener %pSU port %d\n", - &bl->addr, bl->port); + vty_out(vty, " bmp listener %pSU port %d\n", &bl->addr, bl->port); frr_each (bmp_actives, &bt->actives, ba) { vty_out(vty, " bmp connect %s port %u min-retry %u max-retry %u",