mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Send a field status in the node object
This commit is contained in:
3 files changed
+13
-2
No files matched your search
@@ -49,11 +49,16 @@ class Node:
|
||||
self._properties = properties
|
||||
self._command_line = None
|
||||
self._node_directory = None
|
||||
self._status = "stopped"
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
return self._id
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
return self._status
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._name
|
||||
@@ -236,5 +241,6 @@ class Node:
|
||||
"console": self._console,
|
||||
"console_type": self._console_type,
|
||||
"command_line": self._command_line,
|
||||
"properties": self._properties
|
||||
"properties": self._properties,
|
||||
"status": self._status
|
||||
}
|
||||
Reference in new issue
Block a user