]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotest: update the LDP VPLS test
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 30 Oct 2019 22:28:56 +0000 (19:28 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 4 Nov 2019 16:05:47 +0000 (13:05 -0300)
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>
tests/topotests/ldp-vpls-topo1/r1/zebra.conf
tests/topotests/ldp-vpls-topo1/r2/zebra.conf
tests/topotests/ldp-vpls-topo1/r3/zebra.conf
tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py

index edfa1780a946e42a38d7ef91d8cd30cab5457e8e..ea047355ad90aef3b035443312669ed6a75dee68 100644 (file)
@@ -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
 !
index 6b95efdce8c2e88eea4476a7fa6b4f4b6fbc5d60..c244442876756ae6963f5f0f9f47070ccb0b43b1 100644 (file)
@@ -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
 !
index 85ec68ff32bbdbbda52f033e6aeb632f27aad24f..6b1eaa2ca0fd64eec709b492d240e4d55c70818b 100644 (file)
@@ -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
 !
index ce651c50cdd6c6df985ca8189203a496521da59d..0fae64402afbfb4b73ea0318579f99cab4629c4d 100755 (executable)
@@ -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']: