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:
@ -105,7 +105,9 @@ class BaseNode:
|
||||
def status(self, status):
|
||||
|
||||
self._node_status = status
|
||||
self._project.emit("node.updated", self)
|
||||
if status in ("started", "stopped", "suspended"):
|
||||
self.project.emit("node.{status}".format(status=status), {"node_id": self.id})
|
||||
self.project.emit("node.updated", self) # FIXME: should we send this when we just start/stop/suspend a node?
|
||||
|
||||
@property
|
||||
def command_line(self):
|
||||
|
Reference in New Issue
Block a user