]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: bmp, define hook for route distinguisher updates
authorPhilippe Guibert <philippe.guibert@6wind.com>
Sun, 3 Nov 2024 21:44:55 +0000 (22:44 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 30 Dec 2024 14:13:38 +0000 (15:13 +0100)
commit4052c18a42b87feb2f3240cde33b8762f548f4fa
tree62dd240994b72b2f8e7f6e765df06c8808bd8bd6
parentf3c17d94e0b6826ed8ca3d47afaf3ae5214169e7
bgpd: bmp, define hook for route distinguisher updates

At startup, if bmp loc-rib is enabled, the peer_id of the
loc-rib per peer header message has the route distinguisher set to 0:0.
Actually, the route distinguisher has been updated after the peer up
message is sent, and the information is not refreshed.

Create a hook API to handle route distinguisher config events: pre and
post configuration. Use that hook in BMP module to send peer down, and
peer up events when necessary.

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