]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Respect ability to reach nexthop if available
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 May 2018 11:40:55 +0000 (07:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 May 2018 11:46:43 +0000 (07:46 -0400)
commitc42eab4bf54897d26ab590734232e2de9d4af87b
treeea5df8118391a2a3c7a0a2e088b8c5235dc381bc
parent54ff5e9b020784226f1a40038a50cedd785085a1
bgpd: Respect ability to reach nexthop if available

When bgp is thinking about opening a connection to a peer,
if we are connected to zebra, allow that to influence our
decision to start the connection.

Found Scenario:

Both bgp and zebra are started up at the same time.  Zebra is
being used to create the connected route through which bgp
will establish a peering relationship.  The machine is a
bit loaded due to other startup conditions and as such bgp
gets to the connection stage here before zebra has installed
the route.  If bgp does not respect zebra data when it does
have a connection then we will attempt to connect.  The
connect will fail because there is no route.  At that time
we will go into the connect timeout(2 minutes) and delay
connection.

What this does.  If we have established a zebra connection and
we do not have a clear path to the destination at this point
do not allow the connection to proceed.

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