]> git.puffer.fish Git - mirror/frr.git/commitdiff
topotests: update bgp_vrf_route_leak_basic
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 11 May 2022 15:37:34 +0000 (17:37 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Thu, 1 Feb 2024 10:11:41 +0000 (11:11 +0100)
Update bgp_vrf_route_leak_basic to set up the VRF interfaces. Otherwise
the routes to the VRF interface are inactives.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/bgp_vrf_route_leak_basic/r1/zebra.conf
tests/topotests/bgp_vrf_route_leak_basic/test_bgp-vrf-route-leak-basic.py

index 35038557df7dc24116571c307805288d68bf8563..731a00829d4e83ff984b9ddc12ed1571fc50b8ef 100644 (file)
@@ -16,3 +16,9 @@ int dummy4
   ip address 10.0.3.1/24
   no shut
 !
+int EVA
+  no shut
+!
+int DONNA
+  no shut
+!
index fd7ffff17cc4ab506a5f1022fa96eb0fba40101f..d26b6968d3d68eb93792ffe6391a39d6215389a1 100644 (file)
@@ -81,11 +81,33 @@ def test_vrf_route_leak():
             }
         ],
         "10.0.1.0/24": [
-            {"protocol": "bgp", "selected": True, "nexthops": [{"fib": True}]}
+            {
+                "protocol": "bgp",
+                "selected": True,
+                "nexthops": [
+                    {
+                        "fib": True,
+                        "interfaceName": "EVA",
+                        "vrf": "EVA",
+                        "active": True,
+                    },
+                ],
+            },
         ],
         "10.0.2.0/24": [{"protocol": "connected"}],
         "10.0.3.0/24": [
-            {"protocol": "bgp", "selected": True, "nexthops": [{"fib": True}]}
+            {
+                "protocol": "bgp",
+                "selected": True,
+                "nexthops": [
+                    {
+                        "fib": True,
+                        "interfaceName": "EVA",
+                        "vrf": "EVA",
+                        "active": True,
+                    },
+                ],
+            },
         ],
     }
 
@@ -98,7 +120,18 @@ def test_vrf_route_leak():
     # Test EVA VRF.
     expect = {
         "10.0.0.0/24": [
-            {"protocol": "bgp", "selected": True, "nexthops": [{"fib": True}]}
+            {
+                "protocol": "bgp",
+                "selected": True,
+                "nexthops": [
+                    {
+                        "fib": True,
+                        "interfaceName": "DONNA",
+                        "vrf": "DONNA",
+                        "active": True,
+                    },
+                ],
+            },
         ],
         "10.0.1.0/24": [
             {
@@ -106,7 +139,18 @@ def test_vrf_route_leak():
             }
         ],
         "10.0.2.0/24": [
-            {"protocol": "bgp", "selected": True, "nexthops": [{"fib": True}]}
+            {
+                "protocol": "bgp",
+                "selected": True,
+                "nexthops": [
+                    {
+                        "fib": True,
+                        "interfaceName": "DONNA",
+                        "vrf": "DONNA",
+                        "active": True,
+                    },
+                ],
+            },
         ],
         "10.0.3.0/24": [
             {