Feature 10922: Stop, start and rebuild 76/11976/4
authork4.rahul <rahul.k4@tataelxsi.co.in>
Fri, 29 Apr 2022 12:30:36 +0000 (12:30 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 21 Jun 2022 11:10:24 +0000 (13:10 +0200)
Added support for feature start stop rebuild of VNF instances
Change-Id: Ica068b9a4716a7ccaf80d98a9665cc91f119b1ee
Signed-off-by: k4.rahul <rahul.k4@tataelxsi.co.in>
osm_nbi/validation.py

index 7e50aa9..f9213d8 100644 (file)
@@ -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,