object_schema={"type":"object"}
schema_version_2={"type":"integer","minimum":2,"maximum":2}
#schema_version_string={"type":"string","enum": ["0.1", "2", "0.2", "3", "0.3"]}
+string_list = {"type": "array", "items": {"type": "string"}}
log_level_schema={"type":"string", "enum":["DEBUG", "INFO", "WARNING","ERROR","CRITICAL"]}
checksum_schema={"type":"string", "pattern":"^[0-9a-fA-F]{32}$"}
size_schema={"type":"integer","minimum":1,"maximum":100}
"http_console_host": nameshort_schema,
"http_console_ports": {
"type": "array",
- "items": {"OneOf": [
+ "items": {"oneOf": [
port_schema,
{"type": "object", "properties": {"from": port_schema, "to": port_schema}, "required": ["from", "to"]}
]}
"type": "object",
"properties":{
"enabled": boolean_schema,
- "start-address": {"OneOf": [null_schema, ip_schema]},
+ "start-address": {"oneOf": [null_schema, ip_schema]},
"count": integer0_schema
},
# "required": ["start-address", "count"],
"type": "object",
"properties": {
"name": name_schema, # overrides vdu name schema
- "mgmt_keys": {"type": "array", "items": {"type": "string"}},
+ "mgmt_keys": string_list,
"vduImage": name_schema,
+ "cloud_init": string_list,
"devices": {
"type": "object",
"patternProperties": {
"osm_vdu_id": name_schema,
"member-vnf-index": name_schema,
"count": integer1_schema,
- "type": {"enum": ["create", "delete"]}
+ "type": {"enum": ["create", "delete"]},
+ "cloud_init": string_list,
},
"additionalProperties": False,
"minProperties": 1,
"items": {
"type": "object",
"properties": {
- "pci": {"OneOf": [null_schema, pci_extended_schema]}, # pci_schema,
+ "pci": {"oneOf": [null_schema, pci_extended_schema]}, # pci_schema,
"switch_port": nameshort_schema,
"switch_id": nameshort_schema,
"switch_dpid": nameshort_schema,