mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
New node information dialog to display general, usage and command line information.
Ref https://github.com/GNS3/gns3-gui/issues/2662 https://github.com/GNS3/gns3-gui/issues/2656
This commit is contained in:
parent
40f8a33331
commit
9ed181151f
@ -109,6 +109,7 @@ class DockerVM(BaseNode):
|
||||
def __json__(self):
|
||||
return {
|
||||
"name": self._name,
|
||||
"usage": self.usage,
|
||||
"node_id": self._id,
|
||||
"container_id": self._cid,
|
||||
"project_id": self._project.id,
|
||||
|
@ -143,6 +143,7 @@ class Router(BaseNode):
|
||||
def __json__(self):
|
||||
|
||||
router_info = {"name": self.name,
|
||||
"usage": self.usage,
|
||||
"node_id": self.id,
|
||||
"node_directory": os.path.join(self._working_directory),
|
||||
"project_id": self.project.id,
|
||||
|
@ -215,6 +215,7 @@ class IOUVM(BaseNode):
|
||||
def __json__(self):
|
||||
|
||||
iou_vm_info = {"name": self.name,
|
||||
"usage": self.usage,
|
||||
"node_id": self.id,
|
||||
"node_directory": self.working_path,
|
||||
"console": self._console,
|
||||
|
@ -75,6 +75,7 @@ class VirtualBoxVM(BaseNode):
|
||||
def __json__(self):
|
||||
|
||||
json = {"name": self.name,
|
||||
"usage": self.usage,
|
||||
"node_id": self.id,
|
||||
"console": self.console,
|
||||
"console_type": self.console_type,
|
||||
|
@ -74,6 +74,7 @@ class VMwareVM(BaseNode):
|
||||
def __json__(self):
|
||||
|
||||
json = {"name": self.name,
|
||||
"usage": self.usage,
|
||||
"node_id": self.id,
|
||||
"console": self.console,
|
||||
"console_type": self.console_type,
|
||||
|
@ -25,6 +25,10 @@ IOU_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the IOU VM",
|
||||
"type": "string",
|
||||
},
|
||||
"ethernet_adapters": {
|
||||
"description": "Number of ethernet adapters",
|
||||
"type": "integer",
|
||||
|
@ -22,13 +22,13 @@ from .qemu import QEMU_PLATFORMS
|
||||
|
||||
|
||||
QEMU_TEMPLATE_PROPERTIES = {
|
||||
"usage": {
|
||||
"description": "How to use the Qemu VM",
|
||||
"qemu_path": {
|
||||
"description": "Path to QEMU",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"qemu_path": {
|
||||
"description": "Path to QEMU",
|
||||
"usage": {
|
||||
"description": "How to use the Qemu VM",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
|
@ -26,6 +26,11 @@ VIRTUALBOX_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the VirtualBox VM",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"ram": {
|
||||
"description": "Amount of RAM",
|
||||
"minimum": 0,
|
||||
|
@ -26,6 +26,11 @@ VMWARE_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the VMware VM",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"linked_clone": {
|
||||
"description": "Whether the VM is a linked clone or not",
|
||||
"type": "boolean",
|
||||
|
Loading…
Reference in New Issue
Block a user