mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Reload a topology work
This commit is contained in:
14 files changed
+167
-34
No files matched your search
@@ -228,7 +228,19 @@ class Compute:
|
||||
def password(self, value):
|
||||
self._set_auth(self._user, value)
|
||||
|
||||
def __json__(self):
|
||||
def __json__(self, topology_dump=False):
|
||||
"""
|
||||
:param topology_dump: Filter to keep only properties require for saving on disk
|
||||
"""
|
||||
if topology_dump:
|
||||
return {
|
||||
"compute_id": self._id,
|
||||
"name": self._name,
|
||||
"protocol": self._protocol,
|
||||
"host": self._host,
|
||||
"port": self._port,
|
||||
"user": self._user
|
||||
}
|
||||
return {
|
||||
"compute_id": self._id,
|
||||
"name": self._name,
|
||||
|
||||
Reference in new issue
Block a user