Support "usage" field for Dynamips, IOU, VirtualBox and VMware. Fixes https://github.com/GNS3/gns3-gui/issues/2657

pull/1487/head
grossmj 5 years ago
parent 468145319d
commit eae9774d69

@ -66,7 +66,7 @@ DOCKER_CREATE_SCHEMA = {
"type": ["integer", "null"]
},
"usage": {
"description": "How to use the qemu VM",
"description": "How to use the Docker container",
"type": "string",
},
"start_command": {
@ -180,7 +180,7 @@ DOCKER_OBJECT_SCHEMA = {
"maximum": 99,
},
"usage": {
"description": "How to use the qemu VM",
"description": "How to use the Docker container",
"type": "string",
},
"start_command": {

@ -79,6 +79,10 @@ VM_CREATE_SCHEMA = {
"type": "string",
"minLength": 1,
},
"usage": {
"description": "How to use the Dynamips VM",
"type": "string",
},
"platform": {
"description": "Cisco router platform",
"type": "string",
@ -301,6 +305,10 @@ VM_UPDATE_SCHEMA = {
"type": "string",
"minLength": 1,
},
"usage": {
"description": "How to use the Dynamips VM",
"type": "string",
},
"platform": {
"description": "Cisco router platform",
"type": "string",
@ -541,6 +549,10 @@ VM_OBJECT_SCHEMA = {
"type": "string",
"minLength": 1,
},
"usage": {
"description": "How to use the Dynamips VM",
"type": "string",
},
"status": {
"description": "VM status",
"enum": ["started", "stopped", "suspended"]

@ -36,6 +36,10 @@ IOU_CREATE_SCHEMA = {
{"type": "integer"} # for legacy projects
]
},
"usage": {
"description": "How to use the IOU VM",
"type": "string",
},
"console": {
"description": "Console TCP port",
"minimum": 1,
@ -130,6 +134,10 @@ IOU_OBJECT_SCHEMA = {
"maxLength": 36,
"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}$"
},
"usage": {
"description": "How to use the IOU VM",
"type": "string",
},
"node_directory": {
"description": "Path to the node working directory",
"type": "string"

@ -41,7 +41,7 @@ QEMU_CREATE_SCHEMA = {
"minLength": 1,
},
"usage": {
"description": "How to use the qemu VM",
"description": "How to use the Qemu VM",
"type": "string",
},
"linked_clone": {

@ -43,6 +43,10 @@ VBOX_CREATE_SCHEMA = {
"type": "string",
"minLength": 1,
},
"usage": {
"description": "How to use the VirtualBox VM",
"type": "string",
},
"vmname": {
"description": "VirtualBox VM name (in VirtualBox itself)",
"type": "string",
@ -118,6 +122,10 @@ VBOX_OBJECT_SCHEMA = {
"maxLength": 36,
"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}$"
},
"usage": {
"description": "How to use the VirtualBox VM",
"type": "string",
},
"vmname": {
"description": "VirtualBox VM name (in VirtualBox itself)",
"type": "string",

@ -39,6 +39,10 @@ VMWARE_CREATE_SCHEMA = {
"type": "string",
"minLength": 1,
},
"usage": {
"description": "How to use the VMware VM",
"type": "string",
},
"vmx_path": {
"description": "Path to the vmx file",
"type": "string",
@ -94,6 +98,10 @@ VMWARE_OBJECT_SCHEMA = {
"type": "string",
"minLength": 1,
},
"usage": {
"description": "How to use the VMware VM",
"type": "string",
},
"node_id": {
"description": "Node UUID",
"type": "string",

Loading…
Cancel
Save