From b63273ec97bb77862b66138f9e9d2265feb2223d Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 9 Jan 2017 13:24:23 +0100 Subject: [PATCH] Fix resume of dynamips routers Fix #1754 --- gns3server/compute/dynamips/nodes/router.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/compute/dynamips/nodes/router.py b/gns3server/compute/dynamips/nodes/router.py index 7b0e4731..0bf22f25 100644 --- a/gns3server/compute/dynamips/nodes/router.py +++ b/gns3server/compute/dynamips/nodes/router.py @@ -325,7 +325,10 @@ class Router(BaseNode): 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