]> git.puffer.fish Git - matthieu/frr.git/commit
BGP: Restart the BGP FSM if update source fails.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Jun 2015 14:59:11 +0000 (07:59 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Jun 2015 14:59:11 +0000 (07:59 -0700)
commit490674967fc964c992d06dd8e104a359483768fd
treef4674d6e6ed9ae93cbb474d21f0be947e453b6ba
parented40466af80c9d0b88436c637a1d54b28a669b1c
BGP: Restart the BGP FSM if update source fails.

For IPv6, update source sometimes fails at the first attempt. If we continue
ignoring the error, some sessions will not come up. If instead we check for
the error and return connect_error, the FSM will reset its state and try again
till the update source bind succeeds and the session will come up.

This patch adds checking for the result of bind and update_source to return
connect_error or success. The rest of the code handles the situation correctly
after that.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Vivek Venkataraman <vivek@cumulusnetworks.com>
bgpd/bgp_network.c