mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-12 20:38:23 +00:00
Make sure nodes send the right notification when started, stopped or suspended.
This commit is contained in:
@ -294,6 +294,7 @@ class Router(BaseNode):
|
||||
status = yield from self.get_status()
|
||||
if status == "running":
|
||||
yield from self._hypervisor.send('vm suspend "{name}"'.format(name=self._name))
|
||||
self.status = "suspended"
|
||||
log.info('Router "{name}" [{id}] has been suspended'.format(name=self._name, id=self._id))
|
||||
|
||||
@asyncio.coroutine
|
||||
|
Reference in New Issue
Block a user