Changed from NetworkGraph to Topology and added del_db as function in ramcloud driver
diff --git a/TestON/drivers/common/cli/ramcloudclidriver.py b/TestON/drivers/common/cli/ramcloudclidriver.py
index 6f13cb5..52f8e7d 100644
--- a/TestON/drivers/common/cli/ramcloudclidriver.py
+++ b/TestON/drivers/common/cli/ramcloudclidriver.py
@@ -184,6 +184,27 @@
else:
main.log.warn(self.name+": RAMCloud is not Running")
return main.FALSE
+
+ def del_db(self):
+ '''
+ This function will clean out the database
+ '''
+ main.log.info(self.name + ": Deleting RC Database")
+ self.handle.sendline("")
+ self.handle.expect(["\$",pexpect.EOF,pexpect.TIMEOUT])
+ self.handle.sendline("cd "+self.home)
+ self.handle.sendline("./onos.sh rc deldb")
+ self.handle.expect(["[y/N]",pexpect.EOF,pexpect.TIMEOUT])
+ self.handle.sendline("y")
+ self.handle.expect(["\$",pexpect.EOF,pexpect.TIMEOUT])
+ response = self.handle.before + self.handle.after
+ main.log.info(response)
+ if re.search("DONE",response):
+ main.log.info("RAMCloud Database Cleaned")
+ return main.TRUE
+ else:
+ main.log.warn("Something wrong in Cleaning Database")
+ return main.FALSE
def stop_coor(self):