Bugzilla - Bug 2101 : Vertical Scaling Json schema issue
[osm/NBI.git] / osm_nbi / validation.py
index 6ed6fba..a17e241 100644 (file)
@@ -619,21 +619,29 @@ ns_verticalscale = {
     "type": "object",
     "properties": {
         "lcmOperationType": string_schema,
     "type": "object",
     "properties": {
         "lcmOperationType": string_schema,
+        "verticalScale": string_schema,
         "nsInstanceId": id_schema,
         "nsInstanceId": id_schema,
-        "vnfInstanceId": id_schema,
-        "migrateToHost": string_schema,
-        "vdu": {
+        "changeVnfFlavorData": {
             "type": "object",
             "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"]}
 }
 
 schema_version = {"type": "string", "enum": ["1.0"]}