Add purge intentfunction to onos driver
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index 87df2fe..9590b26 100644
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -400,6 +400,14 @@
self.handle.sendline("cd "+self.home)
return main.TRUE
+ def purge(self):
+ main.log.info("Purging dead intents")
+ self.handle.sendline("cd "+self.home+ "/scripts")
+ self.handle.expect("scripts")
+ print("Purging Intents")
+ self.handle.sendline("./purgeintents.py")
+ self.handle.sendline("cd "+self.home)
+ return main.TRUE