From 69964ec5291654ac3895e394148124b8021f13b7 Mon Sep 17 00:00:00 2001 From: govindarajul Date: Wed, 6 Jul 2022 10:24:38 +0000 Subject: [PATCH] Bugzilla - Bug 2101 : Vertical Scaling Json schema issue Change-Id: I65c756b18c0f70b51517c09b65fa07d445f7d146 Signed-off-by: govindarajul --- osm_nbi/validation.py | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) 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"]} -- 2.25.1