From: k4.rahul Date: Fri, 29 Apr 2022 12:30:36 +0000 (+0000) Subject: Feature 10922: Stop, start and rebuild X-Git-Tag: v12.0.0rc1~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F76%2F11976%2F4;p=osm%2FNBI.git Feature 10922: Stop, start and rebuild Added support for feature start stop rebuild of VNF instances Change-Id: Ica068b9a4716a7ccaf80d98a9665cc91f119b1ee Signed-off-by: k4.rahul --- 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,