From: govindarajul Date: Wed, 6 Jul 2022 10:24:38 +0000 (+0000) Subject: Bugzilla - Bug 2101 : Vertical Scaling Json schema issue X-Git-Tag: release-v13.0-start~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F12305%2F2;p=osm%2FNBI.git Bugzilla - Bug 2101 : Vertical Scaling Json schema issue Change-Id: I65c756b18c0f70b51517c09b65fa07d445f7d146 Signed-off-by: govindarajul --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 6ed6fba..a17e241 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -619,21 +619,29 @@ ns_verticalscale = { "type": "object", "properties": { "lcmOperationType": string_schema, + "verticalScale": string_schema, "nsInstanceId": id_schema, - "vnfInstanceId": id_schema, - "migrateToHost": string_schema, - "vdu": { + "changeVnfFlavorData": { "type": "object", - "properties": { - "vduId": name_schema, - "vduCountIndex": integer0_schema, + "properties": { + "vnfInstanceId": id_schema, + "additionalParams": { + "type": "object", + "properties": { + "vduid": string_schema, + "vduCountIndex": integer0_schema, + "virtualMemory": integer1_schema, + "sizeOfStorage": integer0_schema, + "numVirtualCpu": integer1_schema, + }, + } }, - "required": ["vduId"], - "additionalProperties": False, + "required": ["vnfInstanceId", "additionalParams"], + "additionalProperties": False, + } }, - }, - "required": ["vnfInstanceId"], - "additionalProperties": False + "required": ["lcmOperationType", "verticalScale", "nsInstanceId"], + "additionalProperties": False, } schema_version = {"type": "string", "enum": ["1.0"]}