]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_zebra.c
bgpd: Advertise FIB installed routes to bgp peers (Part 3)
authorSoman K S <somanks@gmail.com>
Fri, 6 Nov 2020 03:25:56 +0000 (08:55 +0530)
committerSoman K S <somanks@gmail.com>
Fri, 6 Nov 2020 03:25:56 +0000 (08:55 +0530)
commita77e2f4bab740cf959c8f3c41694954df6f7e7ca
tree8cbb2887d0a1679c49207fd10b6742131ba1ae70
parentc208c58670a3de2078fce343fed9a70e5b014690
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>
bgpd/bgp_fsm.c
bgpd/bgp_fsm.h
bgpd/bgp_io.c
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgp_table.h
bgpd/bgp_updgrp_adv.c
bgpd/bgp_zebra.c
bgpd/bgpd.h