X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=a17e2410e82b7e32e28ccc76eb11f4e9c4951eee;hb=bf7f196f1b090a35989357c0e93d50b25de1ff63;hp=f9213d83d72e7c1901abc5f6482a253870dbc165;hpb=e3dca38ffdc68915611ebbc95d7feb081eeef2ef;p=osm%2FNBI.git diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index f9213d8..a17e241 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -613,6 +613,37 @@ 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, + "verticalScale": string_schema, + "nsInstanceId": id_schema, + "changeVnfFlavorData": { + "type": "object", + "properties": { + "vnfInstanceId": id_schema, + "additionalParams": { + "type": "object", + "properties": { + "vduid": string_schema, + "vduCountIndex": integer0_schema, + "virtualMemory": integer1_schema, + "sizeOfStorage": integer0_schema, + "numVirtualCpu": integer1_schema, + }, + } + }, + "required": ["vnfInstanceId", "additionalParams"], + "additionalProperties": False, + } + }, + "required": ["lcmOperationType", "verticalScale", "nsInstanceId"], + "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"]}