Fix a crash when adding builtin switch and hub

This commit is contained in:
Julien Duponchelle committed 2016-09-29 15:07:05 +02:00
1 parent 2b1fab6742
commit 462238a335
2 files changed
+4 -4

No files matched your search

+2 -2
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"],
+2 -2
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",