mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Support for "usage" for "Cloud" nodes. Fixes https://github.com/GNS3/gns3-gui/issues/2887
Allow "usage" for all builtin nodes (not exposed in Ui).
This commit is contained in:
1 parent
d11897c1ec
commit
dff035d957
26 files changed
+100
-35
No files matched your search
@@ -27,6 +27,10 @@ ATM_SWITCH_CREATE_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the ATM switch",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"oneOf": [
|
||||
@@ -55,6 +59,10 @@ ATM_SWITCH_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the ATM switch",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
@@ -53,6 +53,10 @@ CLOUD_CREATE_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the cloud",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"oneOf": [
|
||||
@@ -113,6 +117,10 @@ CLOUD_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the cloud",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
@@ -26,11 +26,6 @@ DOCKER_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the Docker container",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"adapters": {
|
||||
"description": "Number of adapters",
|
||||
"type": "integer",
|
||||
|
||||
@@ -30,11 +30,6 @@ DYNAMIPS_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the Dynamips VM",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"mmap": {
|
||||
"description": "MMAP feature",
|
||||
"type": "boolean",
|
||||
|
||||
@@ -46,6 +46,10 @@ ETHERNET_HUB_CREATE_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the hub",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"oneOf": [
|
||||
@@ -98,6 +102,10 @@ ETHERNET_HUB_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the hub",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
@@ -58,6 +58,10 @@ ETHERNET_SWITCH_CREATE_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the switch",
|
||||
"type": "string",
|
||||
},
|
||||
"console": {
|
||||
"description": "Console TCP port",
|
||||
"minimum": 1,
|
||||
@@ -132,6 +136,10 @@ ETHERNET_SWITCH_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the switch",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
@@ -27,6 +27,10 @@ FRAME_RELAY_SWITCH_CREATE_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the Frame Relay switch",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"oneOf": [
|
||||
@@ -55,6 +59,10 @@ FRAME_RELAY_SWITCH_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the Frame Relay switch",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
@@ -25,11 +25,6 @@ IOU_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the IOU VM",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"ethernet_adapters": {
|
||||
"description": "Number of ethernet adapters",
|
||||
"type": "integer",
|
||||
|
||||
@@ -28,6 +28,10 @@ NAT_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the Nat instance",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
@@ -27,11 +27,6 @@ QEMU_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the Qemu VM",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"platform": {
|
||||
"description": "Platform to emulate",
|
||||
"enum": QEMU_PLATFORMS,
|
||||
|
||||
@@ -35,6 +35,11 @@ BASE_TEMPLATE_PROPERTIES = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use this template",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"compute_id": {
|
||||
"description": "Compute identifier",
|
||||
"type": ["null", "string"]
|
||||
|
||||
@@ -26,11 +26,6 @@ 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,11 +26,6 @@ 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",
|
||||
|
||||
@@ -26,6 +26,10 @@ VPCS_CREATE_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the VPCS VM",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"oneOf": [
|
||||
@@ -65,6 +69,10 @@ VPCS_UPDATE_SCHEMA = {
|
||||
"type": ["string", "null"],
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the VPCS VM",
|
||||
"type": "string",
|
||||
},
|
||||
"console": {
|
||||
"description": "Console TCP port",
|
||||
"minimum": 1,
|
||||
@@ -89,6 +97,10 @@ VPCS_OBJECT_SCHEMA = {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
},
|
||||
"usage": {
|
||||
"description": "How to use the VPCS VM",
|
||||
"type": "string",
|
||||
},
|
||||
"node_id": {
|
||||
"description": "Node UUID",
|
||||
"type": "string",
|
||||
|
||||
Reference in new issue
Block a user