Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topotato: test_bgp_local_as_private_remove.py #128

Open
wants to merge 1 commit into
base: topotato-base
Choose a base branch
from

Conversation

Chromico
Copy link

The function bgp_as_path_r4 fails.

@eqvinox
Copy link

eqvinox commented Sep 5, 2023

diff --git a/test_bgp_local_as_private_remove.py b/test_bgp_local_as_private_remove.py
index 9b3529f77d55..2f4c40e054a6 100644
--- a/test_bgp_local_as_private_remove.py
+++ b/test_bgp_local_as_private_remove.py
@@ -19,19 +19,19 @@ from topotato import *
 @topology_fixture()
 def topology(topo):
     """
-            [ r1 ]
-              |
-    [ r4 ]--{ s1 }--[ r2 ]
-      |       |
-    { s2 }--[ r3 ]
+    [ r1 ]--{ s1 }--[ r2 ]
+
+
+
+    [ r4 ]--{ s2 }--[ r3 ]
     """
 
     topo.router("r1").lo_ip4.append("172.16.255.254/32")
     topo.router("r3").lo_ip4.append("172.16.255.255/32")
     topo.router("r1").iface_to("s1").ip4.append("192.168.255.1/24")
     topo.router("r2").iface_to("s1").ip4.append("192.168.255.2/24")
-    topo.router("r3").iface_to("s1").ip4.append("192.168.255.1/24")
-    topo.router("r4").iface_to("s1").ip4.append("192.168.255.3/24")
+    topo.router("r3").iface_to("s2").ip4.append("192.168.255.1/24")
+    topo.router("r4").iface_to("s2").ip4.append("192.168.255.3/24")
 
 
 class Configs(FRRConfigs):
@@ -72,19 +72,19 @@ class Configs(FRRConfigs):
     #%   elif router.name == 'r3'
     router bgp 3000
      no bgp ebgp-requires-policy
-     neighbor {{ routers.r2.iface_to('s1').ip4[0].ip }} remote-as 1000
-     neighbor {{ routers.r2.iface_to('s1').ip4[0].ip }} timers 3 10
-     neighbor {{ routers.r2.iface_to('s1').ip4[0].ip }} local-as 500
+     neighbor {{ routers.r4.iface_to('s2').ip4[0].ip }} remote-as 1000
+     neighbor {{ routers.r4.iface_to('s2').ip4[0].ip }} timers 3 10
+     neighbor {{ routers.r4.iface_to('s2').ip4[0].ip }} local-as 500
      address-family ipv4 unicast
-      neighbor {{ routers.r2.iface_to('s1').ip4[0].ip }} remove-private-AS
+      neighbor {{ routers.r4.iface_to('s2').ip4[0].ip }} remove-private-AS
       redistribute connected
      exit-address-family
     !
     #%   elif router.name == 'r4'
     router bgp 1000
      no bgp ebgp-requires-policy
-     neighbor {{ routers.r1.iface_to('s1').ip4[0].ip }} remote-as 500
-     neighbor {{ routers.r1.iface_to('s1').ip4[0].ip }} timers 3 10
+     neighbor {{ routers.r3.iface_to('s2').ip4[0].ip }} remote-as 500
+     neighbor {{ routers.r3.iface_to('s2').ip4[0].ip }} timers 3 10
     !
     #%   endif
     #% endblock
@@ -142,7 +142,7 @@ class BGPLocalAsPrivateRemove(TestBase, AutoFixture, topo=topology, configs=Conf
         yield from AssertVtysh.make(
             r4,
             "bgpd",
-            f"show ip bgp 172.16.255.254/32 json",
+            f"show ip bgp 172.16.255.255/32 json",
             maxwait=5.0,
             compare=expected,
         )

@Chromico Chromico force-pushed the bgp-local-as-private-remove branch from 1d65d51 to 952a9df Compare September 30, 2023 00:54
@Chromico Chromico changed the title topotato: wip test_bgp_local_as_private_remove.py topotato: test_bgp_local_as_private_remove.py Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants