Merge pull request #23 from OPENNETWORKINGLAB/driver_change
Adding node ip option to onos-uninstall
diff --git a/TestON/drivers/common/cli/onosdriver.py b/TestON/drivers/common/cli/onosdriver.py
index 1fb180a..1bd856e 100644
--- a/TestON/drivers/common/cli/onosdriver.py
+++ b/TestON/drivers/common/cli/onosdriver.py
@@ -761,7 +761,7 @@
main.cleanup()
main.exit()
- def onos_uninstall(self):
+ def onos_uninstall(self, node_ip=""):
'''
Calls the command: 'onos-uninstall'
Uninstalls ONOS from the designated cell machine, stopping
@@ -770,7 +770,7 @@
try:
self.handle.sendline("")
self.handle.expect("\$")
- self.handle.sendline("onos-uninstall")
+ self.handle.sendline("onos-uninstall " +str(node_ip))
self.handle.expect("\$")
main.log.info("ONOS cell machine was uninstalled")