Fix T3 for SRRouting
- Fix the issue that t3-simple doesn't work for external hosts
- Run t3 with both locations for dual-homed hosts
- Add timeout when dumping onos command to file
Change-Id: I2f93fad5c7d95d08f4b8703ecd606a7f070b4fa4
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py b/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
index e9bb8fe..ad39667 100644
--- a/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
@@ -1179,7 +1179,8 @@
@staticmethod
def verifyPing( main, srcList, dstList, ipv6=False, expect=True, wait=1,
- acceptableFailed=0, skipOnFail=True, stepMsg="Verify Ping" ):
+ acceptableFailed=0, skipOnFail=True, stepMsg="Verify Ping",
+ t3Simple=True ):
"""
Verify reachability from each host in srcList to each host in dstList
"""
@@ -1189,7 +1190,7 @@
except ( NameError, AttributeError ):
main.topo = Topology()
main.step( stepMsg )
- pingResult = main.topo.ping( srcList, dstList, ipv6, expect, wait, acceptableFailed, skipOnFail, True )
+ pingResult = main.topo.ping( srcList, dstList, ipv6, expect, wait, acceptableFailed, skipOnFail, t3Simple )
utilities.assert_equals( expect=main.TRUE,
actual=pingResult,
onpass="{}: Pass".format( stepMsg ),