X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=a17e2410e82b7e32e28ccc76eb11f4e9c4951eee;hp=7e50aa905727ca9ec72b11114fd68d3a85e18b29;hb=69964ec5291654ac3895e394148124b8021f13b7;hpb=0964edf54da6607131d354e1bcb30fbb97dbc5f4 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 7e50aa9..a17e241 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -449,7 +449,7 @@ ns_update = { "nsInstanceId": id_schema, "timeout_ns_update": integer1_schema, "updateType": { - "enum": ["CHANGE_VNFPKG", "REMOVE_VNF", "MODIFY_VNF_INFORMATION"] + "enum": ["CHANGE_VNFPKG", "REMOVE_VNF", "MODIFY_VNF_INFORMATION", "OPERATE_VNF"] }, "modifyVnfInfoData": { "type": "object", @@ -468,6 +468,24 @@ ns_update = { }, "required": ["vnfInstanceId", "vnfdId"], }, + "operateVnfData": { + "type": "object", + "properties": { + "vnfInstanceId": id_schema, + "changeStateTo": name_schema, + "additionalParam": { + "type": "object", + "properties": { + "run-day1": bool_schema, + "vdu_id": name_schema, + "count-index": integer0_schema, + }, + "required": ["vdu_id", "count-index"], + "additionalProperties": False, + } + }, + "required": ["vnfInstanceId", "changeStateTo"], + } }, "required": ["updateType"], "additionalProperties": False, @@ -595,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"]}