1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 00:38:10 +00:00

Fixes WICs port number validation error.

This commit is contained in:
grossmj 2014-04-30 11:06:45 -06:00
parent b54e554497
commit 97e19ac7a5

View File

@ -496,7 +496,7 @@ VM_ADD_NIO_SCHEMA = {
"description": "Port number", "description": "Port number",
"type": "integer", "type": "integer",
"minimum": 0, "minimum": 0,
"maximum": 15 "maximum": 49 # maximum is 16 for regular port numbers, WICs port numbers start at 16, 32 or 48
}, },
"nio": { "nio": {
"type": "object", "type": "object",
@ -534,7 +534,7 @@ VM_DELETE_NIO_SCHEMA = {
"description": "Port number", "description": "Port number",
"type": "integer", "type": "integer",
"minimum": 0, "minimum": 0,
"maximum": 15 "maximum": 49 # maximum is 16 for regular port numbers, WICs port numbers start at 16, 32 or 48
}, },
}, },
"required": ["id", "slot", "port"] "required": ["id", "slot", "port"]