Keep Dynamips logs.

This commit is contained in:
grossmj
2015-02-16 21:30:31 -07:00
parent e6fd471dd5
commit dc4df68c7a
3 changed files with 4 additions and 5 deletions

View File

@ -1494,7 +1494,8 @@ class Router(BaseVM):
"""
try:
reply = yield from self._hypervisor.send("vm extract_config {}".format(self._name))[0].rsplit(' ', 2)[-2:]
reply = yield from self._hypervisor.send("vm extract_config {}".format(self._name))
reply = reply[0].rsplit(' ', 2)[-2:]
except IOError:
#for some reason Dynamips gets frozen when it does not find the magic number in the NVRAM file.
return None, None