X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=6ed6fbab3fd909cc208628d36f2b783ed02ea8f0;hp=f9213d83d72e7c1901abc5f6482a253870dbc165;hb=519da48b76e8996450d58debecf5fdde7daa5b5e;hpb=e3dca38ffdc68915611ebbc95d7feb081eeef2ef diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index f9213d8..6ed6fba 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -613,6 +613,29 @@ ns_heal = { "additionalProperties": False, } +ns_verticalscale = { + "title": "vertial scale 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"} vim_type = shortname_schema # {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}