]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Don't necessarily ignore interface callbacks
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 25 Sep 2018 19:25:51 +0000 (15:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 25 Sep 2018 19:30:23 +0000 (15:30 -0400)
commit85751d1d332eef13fe9d382682184bd7c3037a4a
tree676f0bbfadc2b441c7d5fcffe924c307ff403cb3
parent38ca1c92564235884a4e6cf2227293cbd1b27996
bgpd: Don't necessarily ignore interface callbacks

In bgp if we have not configured bgp we were ignoring
interface based callbacks.  Leading to states where
we may not be processing interface information.
Leading to states where we do not actually keep
ifp data.  As an example:

Suppose vrf A and vrf B.  A has interface swp1.
At the same time we only have a `router bgp 9 vrf B`
When we received the callback for moving swp1
from vrf A to vrf B we were not processing the
move at all and BGP would not consider the interface
part of vrf B at all.

This commit makes bgp pay attention to interface
events irrelevant if bgp is using that vrf.  This
is now consistent with how the lib/if* expects
to work and the rest of the daemons in FRR.

Signed-off-by: Donald Sharp <sharpd@cumulsnetworks.com>
bgpd/bgp_zebra.c