mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Enable show in file manager for cloud
Fix https://github.com/GNS3/gns3-gui/issues/1900
This commit is contained in:
8 files changed
+27
-12
No files matched your search
@@ -81,7 +81,9 @@ class Cloud(BaseNode):
|
||||
"project_id": self.project.id,
|
||||
"ports_mapping": self._ports_mapping,
|
||||
"interfaces": host_interfaces,
|
||||
"status": self.status}
|
||||
"status": self.status,
|
||||
"node_directory": self.working_dir
|
||||
}
|
||||
|
||||
@property
|
||||
def ports_mapping(self):
|
||||
|
||||
@@ -75,7 +75,7 @@ CLOUD_CREATE_SCHEMA = {
|
||||
{"$ref": "#/definitions/HostInterfaces"}
|
||||
]},
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["name"]
|
||||
@@ -123,6 +123,10 @@ CLOUD_OBJECT_SCHEMA = {
|
||||
]},
|
||||
]
|
||||
},
|
||||
"node_directory": {
|
||||
"description": "Path to the VM working directory",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "Node status",
|
||||
"enum": ["started", "stopped", "suspended"]
|
||||
|
||||
@@ -511,7 +511,7 @@ VM_OBJECT_SCHEMA = {
|
||||
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
|
||||
},
|
||||
"node_directory": {
|
||||
"decription": "Path to the vm working directory",
|
||||
"description": "Path to the vm working directory",
|
||||
"type": "string"
|
||||
},
|
||||
"project_id": {
|
||||
|
||||
@@ -503,7 +503,7 @@ QEMU_OBJECT_SCHEMA = {
|
||||
"enum": ["c", "d", "n", "cn", "cd"]
|
||||
},
|
||||
"node_directory": {
|
||||
"decription": "Path to the VM working directory",
|
||||
"description": "Path to the VM working directory",
|
||||
"type": "string"
|
||||
},
|
||||
"ram": {
|
||||
|
||||
@@ -124,7 +124,7 @@ VBOX_OBJECT_SCHEMA = {
|
||||
"enum": ["started", "stopped", "suspended"]
|
||||
},
|
||||
"node_directory": {
|
||||
"decription": "Path to the VM working directory",
|
||||
"description": "Path to the VM working directory",
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"headless": {
|
||||
|
||||
@@ -103,7 +103,7 @@ VMWARE_OBJECT_SCHEMA = {
|
||||
"enum": ["started", "stopped", "suspended"]
|
||||
},
|
||||
"node_directory": {
|
||||
"decription": "Path to the node working directory",
|
||||
"description": "Path to the node working directory",
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"project_id": {
|
||||
|
||||
@@ -109,7 +109,7 @@ VPCS_OBJECT_SCHEMA = {
|
||||
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
|
||||
},
|
||||
"node_directory": {
|
||||
"decription": "Path to the VM working directory",
|
||||
"description": "Path to the VM working directory",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
|
||||
Reference in new issue
Block a user