]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: fix advertise pip running config
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 6 Jan 2020 22:48:57 +0000 (14:48 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 7 Jan 2020 01:00:00 +0000 (17:00 -0800)
commit0137a3d874e0b66afef6cf4d0f24b8d650a34109
treebdac33c610497ef90cf8b45d7c424d4f47672cee
parent5c3be0814fb190b007ff31efa85cca5e66e2daab
bgpd: fix advertise pip running config

advertise pip running configuration should
display ip followed by mac parameters value as defined
in cli signature.

advertise-pip is enabled by default, when displaying the
running configuration, there is '\n' added after
ip and mac parameters which was not guarded around
the non-default parameters.

Currently, for every bgp vrf instance it ends up
displaying l2vpn address-family section due to
unguarded newline.

running config:
router bgp 6004 vrf vrf1
 !
 address-family l2vpn evpn
 exit-address-family
!

Ticket:CM-26964
Testing Done:

With fix when only 'router bgp 6004 vrf vrf1' configured,
running config looks like:

!
router bgp 6004 vrf vrf1
!

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c