1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 21:08:55 +00:00

Fix resume of dynamips routers

Fix #1754
This commit is contained in:
Julien Duponchelle 2017-01-09 13:24:23 +01:00
parent 45cf004946
commit b63273ec97
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -325,7 +325,10 @@ class Router(BaseNode):
Resumes this suspended router
"""
status = yield from self.get_status()
if status == "suspended":
yield from self._hypervisor.send('vm resume "{name}"'.format(name=self._name))
self.status = "started"
log.info('Router "{name}" [{id}] has been resumed'.format(name=self._name, id=self._id))
@asyncio.coroutine