From 6e502a0a758d0e3587c8ec23fe9a691ebe5e0f08 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Wed, 30 Nov 2022 22:18:49 +0100 Subject: [PATCH] tests: Fix `bgp_srv6l3vpn_to_bgp_vrf2` topotest The `bgp_srv6l3vpn_to_bgp_vrf2` topotest tests the SRv6 IPv4 L3VPN functionality. It applies the appropriate configuration in `bgpd` and `zebra`, and then checks that the RIB is updated correctly. The topotest expects to find the AS-Path in the RIB, which is only present if the `bgp send-extra-data zebra` option is enabled in the `bgpd` configuration. Currently, the `bgp send-extra-data zebra` option is not set in the `bgpd` configuration, which always causes the topotest to fail. This commit fixes the `bgp_srv6l3vpn_to_bgp_vrf2` topotest by enabling the `bgp send-extra-data zebra` option for both routers `r1` and `r2`. Signed-off-by: Carmine Scarpitta --- tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/bgpd.conf | 2 ++ tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/bgpd.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/bgpd.conf b/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/bgpd.conf index c06175193e..30a0f8fe78 100644 --- a/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/bgpd.conf +++ b/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/bgpd.conf @@ -1,5 +1,7 @@ frr defaults traditional ! +bgp send-extra-data zebra +! hostname r1 password zebra ! diff --git a/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/bgpd.conf b/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/bgpd.conf index 05170572a4..7ca23002ac 100644 --- a/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/bgpd.conf +++ b/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/bgpd.conf @@ -1,5 +1,7 @@ frr defaults traditional ! +bgp send-extra-data zebra +! hostname r2 password zebra ! -- 2.39.5