]> git.puffer.fish Git - mirror/frr.git/commit
bgpd, topotests: apply route-map after rt vpn export 14512/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 20 Nov 2023 16:23:05 +0000 (17:23 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 21 Nov 2023 17:10:38 +0000 (18:10 +0100)
commitfc1177fe20452bb27f77b523094da451d4c0ccd1
tree158ea52042eb79b2a2c36b0fd3d3c6b3c3c1ec45
parent3dd3b7f6fcc607ffd80329637a0c7feb579cc186
bgpd, topotests: apply route-map after rt vpn export

A route-map can be programmed to remove the route-target which
has been set with 'rt vpn export' command, but fails to remove
it.

Fix this by applying the route-map, then considering the resulting
extended community-list.
Add some tests to catch this issue.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c
tests/topotests/bgp_vpnv4_ebgp/test_bgp_vpnv4_ebgp.py