mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Make sure nodes send the right notification when started, stopped or suspended.
This commit is contained in:
1 parent
51738e19c3
commit
5b604da33a
6 files changed
+20
-8
No files matched your search
@@ -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