]> git.puffer.fish Git - matthieu/frr.git/commit
topotests: bgp_bmp, expose peer_distinguisher in loc-rib
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 30 Oct 2024 20:30:44 +0000 (21:30 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 11 Dec 2024 10:29:37 +0000 (11:29 +0100)
commitd55a5864ddeeab8cc439c6a56b19be8459d7c82e
tree4878cc0cba835c305c9bce3572651747cf7acb86
parent8198dec807ca8cbd00421fd88d607ff6b00fd484
topotests: bgp_bmp, expose peer_distinguisher in loc-rib

The BMP implementation currently only supports global and
loc-rib instance types. When loc-rib is selected, the
peer_distinguisher is set to the route distinguisher of
the L3VRF where the BGP instance is. This functionality has
not been tested until now, because the peer distinguisher
value had been explicitly omitted in the bmp messages.

Expose the peer distinguisher value in all BMP messages
received. This change requires to modify the expected output
for loc-rib when the BGP instance is in a L3VRF.

The handling of peer distinguisher value for RD instances
will follow in the next commits.

Link: https://www.rfc-editor.org/rfc/rfc7854.html#section-4.2
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/bgp_bmp/bgpbmp.py
tests/topotests/bgp_bmp/bmp1vrf/bmp-update-loc-rib-step1.json
tests/topotests/bgp_bmp/bmp1vrf/bmp-withdraw-loc-rib-step1.json
tests/topotests/bgp_bmp/r1vrf/frr.conf