]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix blank line in running-config with bmp listener cmd
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 28 Oct 2024 15:04:45 +0000 (16:04 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 28 Oct 2024 15:41:09 +0000 (16:41 +0100)
commit9a33ee18bfe2769e173911d69cee64b78143184b
tree5f8c88df26e076d0d169f14a49e143aafa5bb30c
parent1668f3262a21b9990bbf3913742c58a62596c757
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 <philippe.guibert@6wind.com>
bgpd/bgp_bmp.c