X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fvalidation.py;h=e4eed742f222dc706d384b40bcb9c5d414e2de03;hb=1fd411bc37a30d03515beda505a4cd12154f2b08;hp=ca8cbc2b28ff581d9d32ba5e0fabe014c4531e5d;hpb=b70f4ed7ed2bce01050a05ea01f9c676200edac9;p=osm%2FRO.git diff --git a/NG-RO/osm_ng_ro/validation.py b/NG-RO/osm_ng_ro/validation.py index ca8cbc2b..e4eed742 100644 --- a/NG-RO/osm_ng_ro/validation.py +++ b/NG-RO/osm_ng_ro/validation.py @@ -101,6 +101,7 @@ deploy_schema = { }, "image": deploy_item_list, "flavor": deploy_item_list, + "shared-volumes": deploy_item_list, "ns": { "type": "object", "properties": { @@ -112,6 +113,22 @@ deploy_schema = { "additionalProperties": False, } +rebuild_schema = { + "$schema": "http://json-schema.org/draft-04/schema#", + "vm_rebuild": { + "type": "array", + "items": { + "type": "object", + "properties": { + "vdu-id": id_schema, + "vim_name": name_schema, + "member-vnf-index": name_schema, + }, + }, + "additionalProperties": True, + }, +} + class ValidationError(Exception): def __init__(self, message, http_code=HTTPStatus.UNPROCESSABLE_ENTITY):