diff options
author | Soman K S <somanks@gmail.com> | 2020-11-06 04:09:28 +0100 |
---|---|---|
committer | Soman K S <somanks@gmail.com> | 2020-11-06 04:09:28 +0100 |
commit | 77b38a4a7dc1dde3a8c24a650884f956fae11157 (patch) | |
tree | e204bfa341c5c1e1473875a24a1fbc88f894cafc /lib/log.c | |
parent | Merge pull request #7466 from idryzhov/fix-bfd-null-deref (diff) | |
download | frr-77b38a4a7dc1dde3a8c24a650884f956fae11157.tar.xz frr-77b38a4a7dc1dde3a8c24a650884f956fae11157.zip |
bgpd: Advertise FIB installed routes to bgp peers (Part 1)
Issue:
The bgp routes learnt from peers which are not installed in kernel are
advertised to peers. This can cause routers to send traffic to these
destinations only to get dropped. The fix is to provide a configurable
option "bgp suppress-fib-pending". When the option is enabled, bgp will
advertise routes only if it these are successfully installed in kernel.
Fix (Part1) :
* Added message ZEBRA_ROUTE_NOTIFY_REQUEST used by client to request
FIB install status for routes
* Added AFI/SAFI to ZAPI messages
* Modified the functions zapi_route_notify_decode(), zsend_route_notify_owner()
and route_notify_internal() to include AFI, SAFI as parameters
Signed-off-by: kssoman <somanks@gmail.com>
Diffstat (limited to 'lib/log.c')
-rw-r--r-- | lib/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -455,7 +455,8 @@ static const struct zebra_desc_table command_types[] = { DESC_ENTRY(ZEBRA_NEIGH_DISCOVER), DESC_ENTRY(ZEBRA_NHG_ADD), DESC_ENTRY(ZEBRA_NHG_DEL), - DESC_ENTRY(ZEBRA_NHG_NOTIFY_OWNER)}; + DESC_ENTRY(ZEBRA_NHG_NOTIFY_OWNER), + DESC_ENTRY(ZEBRA_ROUTE_NOTIFY_REQUEST)}; #undef DESC_ENTRY static const struct zebra_desc_table unknown = {0, "unknown", '?'}; |