Bugzilla - Bug 2101 : Vertical Scaling Json schema issue 05/12305/2
authorgovindarajul <Jayaprakash.g@tataelxsi.co.in>
Wed, 6 Jul 2022 10:24:38 +0000 (10:24 +0000)
committerbeierlm <mark.beierl@canonical.com>
Tue, 26 Jul 2022 14:27:10 +0000 (16:27 +0200)
Change-Id: I65c756b18c0f70b51517c09b65fa07d445f7d146
Signed-off-by: govindarajul <Jayaprakash.g@tataelxsi.co.in>
osm_nbi/validation.py

index 6ed6fba..a17e241 100644 (file)
@@ -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"]}