]> git.puffer.fish Git - matthieu/frr.git/commit
topotests: fix bgp_vpnv[4,6]_per_nexthop prefix not updated
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 2 Oct 2023 19:17:20 +0000 (21:17 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 18 Oct 2023 07:41:02 +0000 (09:41 +0200)
commitdfb56806afa7732b7e8474cef351cb155b7cc675
tree0503f6f71cd4f9c4ae01651ff7a5632739862279
parentfccda55eacd7f1d9b6745038a2f11b1ba9354b4c
topotests: fix bgp_vpnv[4,6]_per_nexthop prefix not updated

The bgp_vpnv[4,6]_table_check() functions analyze the
expected label value of VPN prefixes present in the BGP table.
However, it doesn't verify if the prefixes exist before doing
this. Consequently, the tests will fail if the prefixes do not
show up immediately.
Ensure that all expected VPN prefixes are present before
executing the function.

Fixes: ae5a6bc1f6ba ("topotests: add bgp mpls allocation per next-hop test")
Fixes: 37a02a8dcb0d ("topotests: add bgp_vpnv6 test allocation")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/bgp_vpnv4_per_nexthop_label/test_bgp_vpnv4_per_nexthop_label.py
tests/topotests/bgp_vpnv6_per_nexthop_label/test_bgp_vpnv6_per_nexthop_label.py