From e3dca38ffdc68915611ebbc95d7feb081eeef2ef Mon Sep 17 00:00:00 2001 From: "k4.rahul" Date: Fri, 29 Apr 2022 12:30:36 +0000 Subject: [PATCH] Feature 10922: Stop, start and rebuild Added support for feature start stop rebuild of VNF instances Change-Id: Ica068b9a4716a7ccaf80d98a9665cc91f119b1ee Signed-off-by: k4.rahul --- osm_nbi/validation.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 7e50aa9..f9213d8 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -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, -- 2.25.1