Changed self.execute command to expects in order to properly check for Mininet IP's
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py
index 757ee4c..9d774b3 100644
--- a/TestON/drivers/common/cli/emulator/mininetclidriver.py
+++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -191,10 +191,11 @@
'''
if self.handle :
try:
- self.handle.sendline("")
response = self.execute(cmd=host+" ifconfig",prompt="mininet>",timeout=10)
- print(str(self.handle.before))
- print(str(self.handle.after))
+ print("response 2"+ response)
+ self.handle.sendline(host+" ifconfig")
+ self.handle.expect(["mininet>",pexpect.TIMEOUT])
+ response = self.handle.before + self.handle.after
print(response)
except pexpect.EOF:
main.log.error(self.name + ": EOF exception found")