Edited scripts to add flows
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index eef7a0b..54cc5f6 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -382,6 +382,27 @@
main.cleanup()
main.exit()
+ def ad_flow(self):
+ main.log.info("AD_FLOW RUNNING!!!!")
+ self.handle.sendline("cd "+self.home+ "/scripts")
+ self.handle.expect("scripts")
+ print("Adding flows")
+ self.handle.sendline("./pyintents.py")
+ self.handle.sendline("cd "+self.home)
+ return main.TRUE
+
+ def rm_flow(self):
+ main.log.info("RM_FLOW RUNNING!!!")
+ self.handle.sendline("cd "+self.home+ "/scripts")
+ self.handle.expect("scripts")
+ print("Removing flows")
+ self.handle.sendline("./rmpyintents.py")
+ self.handle.sendline("cd "+self.home)
+ return main.TRUE
+
+
+
+
def add_flow(self, testONip, user = "admin", password = "", flowDef = "/flowdef.txt"):
'''
Copies the flowdef file from TestStation -> ONOS machine