Exa-Networks / exabgp

The BGP swiss army knife of networking
Other
2.07k stars 443 forks source link

Add neighbor filtering to healthcheck.py #1099

Closed gbe0 closed 2 years ago

gbe0 commented 2 years ago

In healthcheck.py, it would be useful to specify an option for a set of neighbors to announce the route to. Currently route advertisements are sent to ExaBGP like this:

announce route 192.0.2.1/32 next-hop 192.0.2.250 ...

As an option, it would be nice to be able to send announcements like this:

neighbor 192.0.2.200 announce route 192.0.2.1/32 next-hop 192.0.2.250 ...
neighbor 192.0.2.200, neighbor 192.0.2.201 announce route 192.0.2.2/32 next-hop 192.0.2.251 ...

This patch adds the --neighbor option to do exactly this.

thomas-mangin commented 2 years ago

LGTM (again), thank you (again) 😉