Modify pingallHosts to continue pings when a pair of hosts are unreachable
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py
index d843fb7..290d9bc 100644
--- a/TestON/drivers/common/cli/emulator/mininetclidriver.py
+++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -397,7 +397,9 @@
try:
main.log.info( "Testing reachability between specified hosts" )
-
+
+ isReachable = main.TRUE
+
for host in hostList:
listIndex = hostList.index(host)
# List of hosts to ping other than itself
@@ -415,9 +417,10 @@
else:
main.log.info( str(host) + " -> X ("+str(temp)+") "
" Destination Unreachable" )
- return main.FALSE
+ # One of the host to host pair is unreachable
+ isReachable = main.FALSE
- return main.TRUE
+ return isReachable
except pexpect.EOF:
main.log.error( self.name + ": EOF exception found" )