bgp_agent_map - map multiple bgp_id to 0.0.0.0/0 (all sflow agent IDs). Is this supported? #551
Description
Description
Currently I have a bgp_agent_map that looks something like this:
bgp_ip=192.0.2.1 ip=0.0.0.0/0
bgp_ip=192.0.2.2 ip=0.0.0.0/0
The bgp_ip
addresses are route collectors / servers that have all possible routes I expect to see in my flow data. I want to map this to any sflow agent from which we receive flow data. In normal operation bgp rib enrichment works just fine, the rib from 192.0.2.1
is used to map flows to prefixes. However if the bgp session for 192.0.2.1
is down we no longer have prefix information for sflow populating in aggregated flows (kafka), even though the bgp session for 192.0.2.2
is up and is a valid source for that data. It seems the bgp_agent_map operates on a first-match basis and sticks with that match as long as the bgp_agent_map is not reloaded.
Short of some external script that monitors logs and re-orders/hot-reloads (SIGUSR2) the bgp agent map, is there a supported way of providing a failover mechanism for bgp rib enrichment to sflow agents?
Version
sFlow Accounting Daemon, sfacctd 1.7.7-git [20211107-0 (ef37a415)]
Appreciation
Please consider starring this project to boost our reach on github!
DONE!