]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: do not install BGP FS entries, while table range not obtained
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 23 May 2018 12:14:53 +0000 (14:14 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 31 May 2018 15:44:41 +0000 (17:44 +0200)
commit88c423d51ba24f4dcdd6efc512f3692814aa16e1
tree682c4a09389e242bbc252f8a578fdc00884eff3b
parentf210af84f84a3f12caa856e20500fd0ee4d7a95e
bgpd: do not install BGP FS entries, while table range not obtained

Sometimes at startup, BGP Flowspec may be allocated a routing table
identifier not in the range of the predefined table range.
This issue is due to the fact that BGP peering goes up, while the BGP
did not yet retrieve the Table Range allocator.
The fix is done so that BGP PBR entries are not installed while
routing table identifier range is not obtained. Once the routing table
identifier is obtained, parse the FS entries and check that all selected
entries are installed, and if not, install it.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_pbr.c
bgpd/bgp_zebra.c
bgpd/bgp_zebra.h
bgpd/bgpd.c