mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Handle custom adapters in schemas.
This commit is contained in:
1 parent
82140c082c
commit
aa4593c993
3 files changed
+8
-7
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
CUSTOM_ADAPTERS_ARRAY_SCHEMA = {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "object",
|
||||
"description": "Custom properties",
|
||||
@@ -46,4 +47,3 @@ CUSTOM_ADAPTERS_ARRAY_SCHEMA = {
|
||||
"required": ["adapter_number"]
|
||||
},
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
import copy
|
||||
from .appliance import BASE_APPLIANCE_PROPERTIES
|
||||
from .custom_adapters import CUSTOM_ADAPTERS_ARRAY_SCHEMA
|
||||
|
||||
|
||||
DOCKER_APPLIANCE_PROPERTIES = {
|
||||
@@ -76,8 +75,7 @@ DOCKER_APPLIANCE_PROPERTIES = {
|
||||
"description": "Docker extra hosts (added to /etc/hosts)",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
},
|
||||
"custom_adapters": CUSTOM_ADAPTERS_ARRAY_SCHEMA
|
||||
}
|
||||
}
|
||||
|
||||
DOCKER_APPLIANCE_PROPERTIES.update(copy.deepcopy(BASE_APPLIANCE_PROPERTIES))
|
||||
|
||||
Reference in new issue
Block a user