Unpack/install all nodes before startup
Madan suggested that this might help vs. the pipelined
startup we were doing before, so let's try it.
We will unpack/install all nodes before we start up,
so that we can start the whole cluster at about the same
instant.
Note that this is probably closer to what we'd see in hardware.
The disadvantage is that we don't get a "clean" environment
with each invocation of start().
Change-Id: I0a45984f50e1ef25a7d8a836e46978fdbdff0bd0
diff --git a/tools/dev/mininet/onos.py b/tools/dev/mininet/onos.py
index 8edc594..00e4a40 100755
--- a/tools/dev/mininet/onos.py
+++ b/tools/dev/mininet/onos.py
@@ -217,6 +217,8 @@
self.dir = '/tmp/%s' % self.name
self.client = self.dir + '/karaf/bin/client'
self.ONOS_HOME = '/tmp'
+ self.cmd( 'rm -rf', self.dir )
+ self.ONOS_HOME = unpackONOS( self.dir, run=self.ucmd )
# pylint: disable=arguments-differ
@@ -225,8 +227,6 @@
env: environment var dict
nodes: all nodes in cluster"""
env = dict( env )
- self.cmd( 'rm -rf', self.dir )
- self.ONOS_HOME = unpackONOS( self.dir, run=self.ucmd )
env.update( ONOS_HOME=self.ONOS_HOME )
self.updateEnv( env )
karafbin = glob( '%s/apache*/bin' % self.ONOS_HOME )[ 0 ]