Skip to content

Commit

Permalink
Fix resume of dynamips routers
Browse files Browse the repository at this point in the history
Fix #1754
  • Loading branch information
julien-duponchelle committed Jan 9, 2017
1 parent 45cf004 commit b63273e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gns3server/compute/dynamips/nodes/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ def resume(self):
Resumes this suspended router
"""

yield from self._hypervisor.send('vm resume "{name}"'.format(name=self._name))
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
Expand Down

0 comments on commit b63273e

Please sign in to comment.