]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: bmp, add peer distinguisher support for peer up/down
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 30 Oct 2024 20:57:35 +0000 (21:57 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 11 Dec 2024 10:29:37 +0000 (11:29 +0100)
commit3c68228a05d158072bad2679d3fb4ad2bac8f35a
tree1ce500c5c3292d0ce525eeae1ce43b580dcf2a9b
parentb7059a8fd9bf3d9161669c20be218c13e5972a3b
bgpd: bmp, add peer distinguisher support for peer up/down

All BMP peer up/down messages send a 0:0 peer distinguisher.
This will not be ok when adding RD instance type.

Add code to get the peer distinguisher value.
- modify the API to pass the BGP instance instead of BMP.
- implement error cases with an unknown vrf identifier or a
peer type with local type value.
- handle the error return of the API; consequently, handle
the bmp_peerstate() error return in the calling functions.

There is no functional change, as the peer type value is
either loc-rib or global, both cases are already handled.

The next commit will handle the RD instance case.

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