Enable host discovery after recovering switch by default in SR tests
Change-Id: Idfa17d61f19b355478710ab2404d74cbc621b8c6
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py
index 54d9747..38706b2 100644
--- a/TestON/drivers/common/cli/emulator/mininetclidriver.py
+++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -574,7 +574,7 @@
main.cleanAndExit()
- def discoverIpv4Hosts( self, hostList, wait=1 , dstIp="6.6.6.6"):
+ def discoverIpv4Hosts( self, hostList, wait=1, dstIp="6.6.6.6" ):
'''
Can only be used if hosts already have ipv4 addresses.
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py b/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
index 44055d3..0fc95ad 100644
--- a/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/Testcaselib.py
@@ -650,7 +650,7 @@
onfail="Failed to kill switch?" )
@staticmethod
- def recoverSwitch( main, switch, switches, links, rediscoverHosts=False ):
+ def recoverSwitch( main, switch, switches, links, rediscoverHosts=True ):
"""
Params: switches, links: number of expected switches and links after SwitchUp, ex.: '4', '6'
Recover a switch and verify ONOS can see the proper change