]> git.proxmox.com Git - mirror_frr.git/commit
Cleanup some code related to NHT.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:08 +0000 (18:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:08 +0000 (18:04 -0700)
commitc5a5c4ffa08d486f82be0a6b354e7e759f43ee33
tree14af50fcd611177e75e35b78d1b14f6ff26e0434
parentb69278752c25e86755fa8bf514e417e1bca03fec
Cleanup some code related to NHT.

When BGP connection setup was moved to rely on nexthop tracking, a few silly
bugs were introduced.
 - bgp_connect_check() was called unnecessarily which resulted in false
   positives which resulted in log messages indicating an error and the FSM
   was unnecessarily reset.
 - When routes to peer disappeared, and the peer was not directly connected,
   the session was not immediately torn down, but only on hold timer expiry.
 - When NHT indicated that route to session IP addr was available, the previous
   state was not reset and as a result, connect retry timer had to expire
   before a reconnection was attempted.
 - connected check MUST be enabled only for EBGP non-multihop sessions and
   only if disbale-connected-check option is not enabled.

This patch fixes all these errors.
bgpd/bgp_fsm.c
bgpd/bgp_nht.c