mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Adds NAT NIO in device schema validation so they can return an error that it is not supported.
This commit is contained in:
parent
5bb870dc0f
commit
221a35baae
@ -218,6 +218,16 @@ DEVICE_NIO_SCHEMA = {
|
|||||||
"required": ["type", "ethernet_device"],
|
"required": ["type", "ethernet_device"],
|
||||||
"additionalProperties": False
|
"additionalProperties": False
|
||||||
},
|
},
|
||||||
|
"NAT": {
|
||||||
|
"description": "NAT Network Input/Output",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"enum": ["nio_nat"]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"required": ["type"],
|
||||||
|
"additionalProperties": False
|
||||||
|
},
|
||||||
"TAP": {
|
"TAP": {
|
||||||
"description": "TAP Network Input/Output",
|
"description": "TAP Network Input/Output",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -291,6 +301,7 @@ DEVICE_NIO_SCHEMA = {
|
|||||||
{"$ref": "#/definitions/UDP"},
|
{"$ref": "#/definitions/UDP"},
|
||||||
{"$ref": "#/definitions/Ethernet"},
|
{"$ref": "#/definitions/Ethernet"},
|
||||||
{"$ref": "#/definitions/LinuxEthernet"},
|
{"$ref": "#/definitions/LinuxEthernet"},
|
||||||
|
{"$ref": "#/definitions/NAT"},
|
||||||
{"$ref": "#/definitions/TAP"},
|
{"$ref": "#/definitions/TAP"},
|
||||||
{"$ref": "#/definitions/UNIX"},
|
{"$ref": "#/definitions/UNIX"},
|
||||||
{"$ref": "#/definitions/VDE"},
|
{"$ref": "#/definitions/VDE"},
|
||||||
|
Loading…
Reference in New Issue
Block a user