fix 1042 add timeout parameter to ns-action ns-scale 53/8753/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 2 Apr 2020 15:40:12 +0000 (15:40 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 2 Apr 2020 15:59:33 +0000 (15:59 +0000)
Change-Id: If8eae30bfdc53f2d55777d3eeb2e1e0f0f00deff
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/validation.py

index 9cfd9a6..ebcf94e 100644 (file)
@@ -377,6 +377,7 @@ ns_action = {   # TODO for the moment it is only contemplated the vnfd primitive
         "vdu_count_index": integer0_schema,
         "kdu_name": name_schema,
         "primitive": name_schema,
         "vdu_count_index": integer0_schema,
         "kdu_name": name_schema,
         "primitive": name_schema,
+        "timeout_ns_action": integer1_schema,
         "primitive_params": {"type": "object"},
     },
     "required": ["primitive", "primitive_params"],   # TODO add member_vnf_index
         "primitive_params": {"type": "object"},
     },
     "required": ["primitive", "primitive_params"],   # TODO add member_vnf_index
@@ -390,6 +391,7 @@ ns_scale = {   # TODO for the moment it is only VDU-scaling
         "lcmOperationType": string_schema,
         "nsInstanceId": id_schema,
         "scaleType": {"enum": ["SCALE_VNF"]},
         "lcmOperationType": string_schema,
         "nsInstanceId": id_schema,
         "scaleType": {"enum": ["SCALE_VNF"]},
+        "timeout_ns_scale": integer1_schema,
         "scaleVnfData": {
             "type": "object",
             "properties": {
         "scaleVnfData": {
             "type": "object",
             "properties": {