Jon Hall
Committed by Gerrit Code Review

Add HA.py

A set of mininet based HA tests based on onos.py
Currently includes the following tests:
    - a control network partitioning test
    - A dynamic cluster scaling test

Change-Id: I9a8e1019dcc51666fee1d933afd66ff390592525
This diff is collapsed. Click to expand it.
......@@ -117,7 +117,8 @@ def updateNodeIPs( env, nodes ):
for index, node in enumerate( nodes, 1 ):
var = 'OC%d' % index
env[ var ] = node.IP()
env[ 'OCI' ] = env[ 'OCN' ] = env[ 'OC1' ]
if nodes:
env[ 'OCI' ] = env[ 'OCN' ] = env[ 'OC1' ]
env[ 'ONOS_INSTANCES' ] = '\n'.join(
node.IP() for node in nodes )
environ.update( env )
......@@ -242,6 +243,7 @@ class ONOSNode( Controller ):
self.ONOS_HOME = '/tmp'
self.cmd( 'rm -rf', self.dir )
self.ONOS_HOME = unpackONOS( self.dir, run=self.ucmd )
self.ONOS_ROOT = ONOS_ROOT
# pylint: disable=arguments-differ
......