Fixes for new jenkins environment and other tweeks
- Fix ERROR message if there are no traffic components to cleanup
- Use full path for "sudo ip" command
- Fix missing testcase declarations
- Make sure we creat dst host components in topology.ping()
Change-Id: Ie01ed72f26fa4c3187f61fefa63f4a791d77b88d
diff --git a/TestON/tests/dependencies/topology.py b/TestON/tests/dependencies/topology.py
index 9d20cda..56a29a9 100644
--- a/TestON/tests/dependencies/topology.py
+++ b/TestON/tests/dependencies/topology.py
@@ -263,6 +263,15 @@
srcIpList[ src ] = main.Network.getIPAddress( src, proto='IPV6' if ipv6 else 'IPV4', iface=hostHandle.interfaces[0].get("name") )
unexpectedPings = []
for dst in dstList:
+ if not hasattr( main, dst ):
+ main.log.info( "Creating component for host {}".format( dst ) )
+ main.Network.createHostComponent( dst )
+ hostHandle = getattr( main, dst )
+ if hasattr( main, 'Mininet1' ):
+ main.log.info( "Starting CLI on host {}".format( dst ) )
+ hostHandle.startHostCli()
+ else:
+ hostHandle.connectInband()
hostHandle = getattr( main, dst )
dstIp = main.Network.getIPAddress( dst, proto='IPV6' if ipv6 else 'IPV4', iface=hostHandle.interfaces[0].get("name") )
# Start pings from src hosts in parallel