]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix peer up message for loc-rib not sent
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 2 Dec 2024 10:07:34 +0000 (11:07 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 5 Dec 2024 14:42:10 +0000 (15:42 +0100)
commit013b9d4c19ef5e7ce8bb307c13ab9e0fc955c7aa
tree9b611355ea04655c44418166c3a5358d9112ec5d
parent34485ee5368af6825ca0f0c886b6ca064d32580d
bgpd: fix peer up message for loc-rib not sent

At startup, there is no peer up message for loc-rib instance peer.
Instead, a global peer up message with address 0.0.0.0 is sent.

Such message is wrong, violates the RFC and should be dropped by
a strict collector. Actually, the peer type message sent is wrong,
and should be set to LOC-RIB peer type.

Fix this by changing the peer type of peer up message to either
loc-rib or global instance peer type.

Fixes: 035304c25a38 ("bgpd: bmp loc-rib peer up/down for vrfs")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_bmp.c