Add stratum bmv2 for SROnosFailure and SRLinkFailure
- Add running stratum switches to these tests
- Add support for docker in SROnosFailure functions
- Add xconnect to cfgtranslator
- Rework switch roles in cfgtranslator
Change-Id: Ic0b386107a7813810de9bf7c34bdf2d869eafa84
(cherry picked from commit d2c84e79dd2257cba150dcde5c089b9d0bf81140)
diff --git a/TestON/tests/dependencies/Cluster.py b/TestON/tests/dependencies/Cluster.py
index e8aa795..5808ba2 100644
--- a/TestON/tests/dependencies/Cluster.py
+++ b/TestON/tests/dependencies/Cluster.py
@@ -605,6 +605,21 @@
result = result and t.result
return result
+ def startONOSDockerNode( self, node ):
+ """
+ Description:
+ Installing onos via docker container on a specific node.
+ Required:
+ * node - the node to install ONOS on, given in index of runningNodes
+ Returns:
+ Returns main.TRUE if it successfully installed
+ """
+ ctrl = self.runningNodes[ node ]
+ result = ctrl.server.dockerRun( self.dockerImageTag,
+ ctrl.name,
+ options=self.dockerOptions )
+ return result
+
def startAtomixDocker( self, installParallel=True ):
"""
Description: