Pinging ng40 with a host for 2x2 SRBridging
Change-Id: Id31aab3c31f7f2981046ac5c3e45794f4886b6c4
diff --git a/TestON/tests/USECASE/SegmentRouting/SROnosFailure/dependencies/SROnosFailureFuncs.py b/TestON/tests/USECASE/SegmentRouting/SROnosFailure/dependencies/SROnosFailureFuncs.py
index f374c47..9da11a5 100644
--- a/TestON/tests/USECASE/SegmentRouting/SROnosFailure/dependencies/SROnosFailureFuncs.py
+++ b/TestON/tests/USECASE/SegmentRouting/SROnosFailure/dependencies/SROnosFailureFuncs.py
@@ -26,19 +26,16 @@
def __init__( self ):
self.default = ''
- self.topo = dict()
- self.topo[ '0x1' ] = ( 0, 1, '--leaf=1 --spine=0', 'single switch' )
- self.topo[ '2x2' ] = ( 2, 2, '', '2x2 Leaf-spine' )
- self.topo[ '4x4' ] = ( 4, 4, '--leaf=4 --spine=4', '4x4 Leaf-spine' )
+ self.topo = run.getTopo()
main.switchType = "ovs"
- def runTest( self, main, caseNum, numNodes, Topo, minFlow, killList=[ 0 ] ):
+ def runTest( self, main, caseNum, numNodes, topology, minFlow, killList=[ 0 ] ):
try:
- description = "ONOS Failure test with " + self.topo[ Topo ][ 3 ]
+ description = "ONOS Failure test with " + self.topo[ topology ][ 'description' ]
main.case( description )
if not hasattr( main, 'apps' ):
run.initTest( main )
- main.cfgName = Topo
+ main.cfgName = topology
main.Cluster.setRunningNode( numNodes )
run.installOnos( main )
suf = main.params.get( 'jsonFileSuffix', '')
@@ -65,7 +62,7 @@
run.mnDockerSetup( main ) # optionally create and setup docker image
# Run the test with Mininet
- mininet_args = self.topo[ Topo ][ 2 ]
+ mininet_args = self.topo[ topology ][ 'mininetArgs' ]
if main.useBmv2:
mininet_args += ' --switch %s' % main.switchType
main.log.info( "Using %s switch" % main.switchType )
@@ -78,8 +75,8 @@
if not main.persistentSetup:
# xconnects need to be loaded after topology
run.loadXconnects( main )
- switches = self.topo[ Topo ][ 0 ] + self.topo[ Topo ][ 1 ]
- links = ( self.topo[ Topo ][ 0 ] * self.topo[ Topo ][ 1 ] ) * 2
+ switches = self.topo[ topology ][ 'spines' ] + self.topo[ topology ][ 'leaves' ]
+ links = ( self.topo[ topology ][ 'spines' ] * self.topo[ topology ][ 'leaves' ] ) * 2
# pre-configured routing and bridging test
run.verifyTopology( main, switches, links, numNodes )
run.checkFlows( main, minFlowCount=minFlow )