Update Cluster Driver
Change-Id: I8a3a57e19637ff210548e57d41178e6f194cf694
diff --git a/TestON/drivers/common/cli/onosdriver.py b/TestON/drivers/common/cli/onosdriver.py
index 6923a29..f0ce0ce 100755
--- a/TestON/drivers/common/cli/onosdriver.py
+++ b/TestON/drivers/common/cli/onosdriver.py
@@ -1406,6 +1406,29 @@
main.cleanup()
main.exit()
+ def preventAutoRespawn( self ):
+ """
+ Description:
+ This will prevent ONOSservice to automatically
+ respawn.
+ """
+ try:
+ self.handle.sendline( "sed -i -e 's/^respawn$/#respawn/g' tools/package/init/onos.conf" )
+ self.handle.expect( "\$" ) # $ from the command
+ self.handle.sendline( "sed -i -e 's/^Restart=always/Restart=no/g' tools/package/init/onos.service" )
+ self.handle.expect( "\$" ) # $ from the command
+ self.handle.expect( "\$" ) # $ from the prompt
+ except pexpect.EOF:
+ main.log.error( self.name + ": EOF exception found" )
+ main.log.error( self.name + ": " + self.handle.before )
+ main.cleanup()
+ main.exit()
+ except Exception:
+ main.log.exception( self.name + ": Uncaught exception!" )
+ main.cleanup()
+ main.exit()
+
+
def pushTestIntentsShell(
self,
dpidSrc,