]> git.puffer.fish Git - mirror/frr.git/commitdiff
topotests: check export labels to pre-policy bmp
authorLouis Scalbert <louis.scalbert@6wind.com>
Tue, 27 Feb 2024 18:32:21 +0000 (19:32 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 11 Oct 2024 13:10:24 +0000 (15:10 +0200)
Check export labels to pre-policy bmp

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/bgp_bmp/test_bgp_bmp.py

index 80e291b2bdb6b02d0e2455264c720a5179e12f87..de5db9eb3e28af958c20d064b020cc7e9af68f06 100644 (file)
@@ -234,15 +234,11 @@ def vpn_prefixes(policy):
 
     prefixes = ["172.31.10.1/32", "2001::2222/128"]
 
-    if policy == PRE_POLICY:
-        # labels are not yet supported in adj-RIB-in. Do not test for the moment
-        labels = None
-    else:
-        # "label vpn export" value in r2/bgpd.conf
-        labels = {
-            "172.31.10.1/32": 102,
-            "2001::2222/128": 105,
-        }
+    # "label vpn export" value in r2/bgpd.conf
+    labels = {
+        "172.31.10.1/32": 102,
+        "2001::2222/128": 105,
+    }
 
     # add prefixes
     configure_prefixes(tgen, "r2", 65502, "unicast", prefixes, vrf="vrf1")