]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Fix bgpd doing vpn_leak_postchange_all() every time "router bgp ASNUM" command...
authorAnton Degtyarev <adeg47@gmail.com>
Wed, 14 Nov 2018 00:54:56 +0000 (03:54 +0300)
committerAnton Degtyarev <adeg47@gmail.com>
Wed, 14 Nov 2018 00:54:56 +0000 (03:54 +0300)
commitecec94950f3a959fad5d8e418a21d0bbfc9b4ce8
tree248fa3cc5a62915435342dd6c11f20cac34fca9d
parentbc620fb370e8a7e3d525f84a2b138088be8e9301
bgpd: Fix bgpd doing vpn_leak_postchange_all() every time "router bgp ASNUM" command is entered in vtysh

In rare cases when the default BGP instance is instantiated after VRF bgp instances (see comment to bgp_mplsvpn.c:vpn_leak_postchange_all() for an example), the "router bgp" command needs to call vpn_leak_postchange_all() to start the route leaking process. The issue was it was never checked if the "router bgp" command was used to create the default BGP instance or just to enter into "router bgp" command context. This resulted in vpn_leak_postchange_all() executed every time (and vpn routes re-announced to all peers) when the user was entering "router bgp" command context.

Signed-off-by: Anton Degtyarev <anton@cumulusnetworks.com>
bgpd/bgp_vty.c