1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Fix a crash when adding builtin switch and hub

This commit is contained in:
Julien Duponchelle 2016-09-29 15:02:42 +02:00
parent 2b1fab6742
commit 462238a335
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ ETHERNET_HUB_CREATE_SCHEMA = {
"port_number": {
"description": "Port number",
"type": "integer",
"minimum": 1
"minimum": 0
},
},
"required": ["name", "port_number"],
@ -84,7 +84,7 @@ ETHERNET_HUB_OBJECT_SCHEMA = {
"port_number": {
"description": "Port number",
"type": "integer",
"minimum": 1
"minimum": 0
},
},
"required": ["name", "port_number"],

View File

@ -32,7 +32,7 @@ ETHERNET_SWITCH_CREATE_SCHEMA = {
"port_number": {
"description": "Port number",
"type": "integer",
"minimum": 1
"minimum": 0
},
"type": {
"description": "Port type",
@ -96,7 +96,7 @@ ETHERNET_SWITCH_OBJECT_SCHEMA = {
"port_number": {
"description": "Port number",
"type": "integer",
"minimum": 1
"minimum": 0
},
"type": {
"description": "Port type",