summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-10-30 19:28:56 -0300
committerRenato Westphal <renato@opensourcerouting.org>2019-11-04 13:05:47 -0300
commitc6d345e4a47e030adf99f8de507f4687705af6f4 (patch)
treeda00d07502d9618585e9f12b40fd94d318d6ffc8 /tests
parenta89241b42d488ada10d11b7d85f1bcf994bdd3df (diff)
topotest: update the LDP VPLS test
The final test case of this topotest wasn't really testing anything. Do the following changes to fix this: * Remove "no link-detect" from the zebra configs so that link down failures are detected immediately; * After shutting down the interface between r1 and r2, wait five seconds before testing if the pseudowires reconverged through the r3 router. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/ldp-vpls-topo1/r1/zebra.conf3
-rw-r--r--tests/topotests/ldp-vpls-topo1/r2/zebra.conf3
-rw-r--r--tests/topotests/ldp-vpls-topo1/r3/zebra.conf3
-rwxr-xr-xtests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py1
4 files changed, 1 insertions, 9 deletions
diff --git a/tests/topotests/ldp-vpls-topo1/r1/zebra.conf b/tests/topotests/ldp-vpls-topo1/r1/zebra.conf
index edfa1780a9..ea047355ad 100644
--- a/tests/topotests/ldp-vpls-topo1/r1/zebra.conf
+++ b/tests/topotests/ldp-vpls-topo1/r1/zebra.conf
@@ -14,17 +14,14 @@ interface lo
!
interface r1-eth0
description to s1
- no link-detect
!
interface r1-eth1
description to s4
ip address 10.0.1.1/24
- no link-detect
!
interface r1-eth2
description to s5
ip address 10.0.2.1/24
- no link-detect
!
ip forwarding
!
diff --git a/tests/topotests/ldp-vpls-topo1/r2/zebra.conf b/tests/topotests/ldp-vpls-topo1/r2/zebra.conf
index 6b95efdce8..c244442876 100644
--- a/tests/topotests/ldp-vpls-topo1/r2/zebra.conf
+++ b/tests/topotests/ldp-vpls-topo1/r2/zebra.conf
@@ -13,17 +13,14 @@ interface lo
!
interface r2-eth0
description to s2
- no link-detect
!
interface r2-eth1
description to s4
ip address 10.0.1.2/24
- no link-detect
!
interface r2-eth2
description to s6
ip address 10.0.3.2/24
- no link-detect
!
ip forwarding
!
diff --git a/tests/topotests/ldp-vpls-topo1/r3/zebra.conf b/tests/topotests/ldp-vpls-topo1/r3/zebra.conf
index 85ec68ff32..6b1eaa2ca0 100644
--- a/tests/topotests/ldp-vpls-topo1/r3/zebra.conf
+++ b/tests/topotests/ldp-vpls-topo1/r3/zebra.conf
@@ -13,17 +13,14 @@ interface lo
!
interface r3-eth0
description to s3
- no link-detect
!
interface r3-eth1
description to s5
ip address 10.0.2.3/24
- no link-detect
!
interface r3-eth2
description to s6
ip address 10.0.3.3/24
- no link-detect
!
ip forwarding
!
diff --git a/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py b/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py
index ce651c50cd..0fae64402a 100755
--- a/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py
+++ b/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py
@@ -257,6 +257,7 @@ def test_ldp_pseudowires_after_link_down():
# Shut down r1-r2 link */
tgen = get_topogen()
tgen.gears['r1'].peer_link_enable('r1-eth1', False)
+ topotest.sleep(5, "Waiting for the network to reconverge")
# check if the pseudowire is still up (using an alternate path for nexthop resolution)
for rname in ['r1', 'r2', 'r3']: