mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fix a crash when adding builtin switch and hub
This commit is contained in:
parent
2b1fab6742
commit
462238a335
@ -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"],
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user