From 97e19ac7a533f6a234a8137ae8bf8e79cfc647c7 Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 30 Apr 2014 11:06:45 -0600 Subject: [PATCH] Fixes WICs port number validation error. --- gns3server/modules/dynamips/schemas/vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/dynamips/schemas/vm.py b/gns3server/modules/dynamips/schemas/vm.py index 3180d371..85eb06ee 100644 --- a/gns3server/modules/dynamips/schemas/vm.py +++ b/gns3server/modules/dynamips/schemas/vm.py @@ -496,7 +496,7 @@ VM_ADD_NIO_SCHEMA = { "description": "Port number", "type": "integer", "minimum": 0, - "maximum": 15 + "maximum": 49 # maximum is 16 for regular port numbers, WICs port numbers start at 16, 32 or 48 }, "nio": { "type": "object", @@ -534,7 +534,7 @@ VM_DELETE_NIO_SCHEMA = { "description": "Port number", "type": "integer", "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"]