X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;fp=osm_nbi%2Fvalidation.py;h=3373b846db4f4eaeb45192bfcf7fbaf71411bcaa;hp=5c755221e6b897c4ca0c3934c9e8e292e1e879d5;hb=8e3806cb1f4de97e7465d9da832eb1a841441cb9;hpb=e47b913f0500837d7caa2ee25c0b476f58884859 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 5c75522..3373b84 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -526,6 +526,28 @@ ns_scale = { # TODO for the moment it is only VDU-scaling "additionalProperties": False, } +ns_migrate = { + "title": "ns migrate input schema", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "lcmOperationType": string_schema, + "nsInstanceId": id_schema, + "vnfInstanceId": id_schema, + "migrateToHost": string_schema, + "vdu": { + "type": "object", + "properties": { + "vduId": name_schema, + "vduCountIndex": integer0_schema, + }, + "required": ["vduId"], + "additionalProperties": False, + }, + }, + "required": ["vnfInstanceId"], + "additionalProperties": False +} schema_version = {"type": "string", "enum": ["1.0"]} schema_type = {"type": "string"}