X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO%2Fosm_ro%2Fopenmano_schemas.py;h=14e334d4f4816e626d0d963b18bffb4fd43c78de;hp=aa235ecb70c938d9435b487cfcda7b7fe033877e;hb=3eb76f86fe6771f8d278fd3c61b69c8219a9fb06;hpb=274bfc7019af82dac67bbbeb121ef45739a45e4e diff --git a/RO/osm_ro/openmano_schemas.py b/RO/osm_ro/openmano_schemas.py index aa235ecb..14e334d4 100644 --- a/RO/osm_ro/openmano_schemas.py +++ b/RO/osm_ro/openmano_schemas.py @@ -56,6 +56,7 @@ port_schema={"type":"integer","minimum":1,"maximum":65534} 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} @@ -1033,8 +1034,9 @@ instance_scenario_create_schema_v01 = { "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": { @@ -1172,7 +1174,8 @@ instance_scenario_action_schema = { "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,