]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgpd.c
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>
Fri, 25 May 2018 13:49:38 +0000 (15:49 +0200)
commit6818e7e5c74107ee4f35f5d415645faeee84594a
treec90c65ffdf55d003cdf485db5758d512b4e270fd
parente9d0aa99211f7eab8892b756209c5f85edb3edc9
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