diff options
| author | Soman K S <somanks@gmail.com> | 2020-11-06 08:55:56 +0530 | 
|---|---|---|
| committer | Soman K S <somanks@gmail.com> | 2020-11-06 08:55:56 +0530 | 
| commit | a77e2f4bab740cf959c8f3c41694954df6f7e7ca (patch) | |
| tree | 8cbb2887d0a1679c49207fd10b6742131ba1ae70 /bgpd/bgp_table.h | |
| parent | c208c58670a3de2078fce343fed9a70e5b014690 (diff) | |
bgpd: Advertise FIB installed routes to bgp peers (Part 3)
* Process FIB update in bgp_zebra_route_notify_owner() and call
  group_announce_route() if route is installed
* When bgp update is received for a route which is not installed earlier
  (flag BGP_NODE_FIB_INSTALLED is not set) and suppress fib is enabled
  set the flag BGP_NODE_FIB_INSTALL_PENDING to indicate fib install is
  pending for the route. The route will be advertised when zebra send
  ZAPI_ROUTE_INSTALLED status.
* The advertisement delay (BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME)
  is added to allow more routes to be sent in single update message.
  This is required since zebra sends route notify message for each route.
  The delay will be applied to update group timer which advertises
  routes to peers.
Signed-off-by: kssoman <somanks@gmail.com>
Diffstat (limited to 'bgpd/bgp_table.h')
| -rw-r--r-- | bgpd/bgp_table.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_table.h b/bgpd/bgp_table.h index 4e9abf863d..738d41ee6d 100644 --- a/bgpd/bgp_table.h +++ b/bgpd/bgp_table.h @@ -102,6 +102,8 @@ struct bgp_node {  #define BGP_NODE_LABEL_CHANGED          (1 << 2)  #define BGP_NODE_REGISTERED_FOR_LABEL   (1 << 3)  #define BGP_NODE_SELECT_DEFER           (1 << 4) +#define BGP_NODE_FIB_INSTALL_PENDING    (1 << 5) +#define BGP_NODE_FIB_INSTALLED          (1 << 6)  	struct bgp_addpath_node_data tx_addpath;  | 
