From 6ddff2ed88923bc1ee3c088dfe29356cc90c27f8 Mon Sep 17 00:00:00 2001 From: delacruzramo Date: Thu, 28 Nov 2019 11:24:09 +0100 Subject: [PATCH] Added KDU inspect/readme actions to NsLcmOpTopic Change-Id: I9ee6b50639d9d8719238b25c76ff8fb881dd0326 Signed-off-by: delacruzramo --- osm_nbi/instance_topics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 0303d54..1b464ee 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -592,8 +592,11 @@ class NsLcmOpTopic(BaseTopic): descriptor_configuration = nsd.get("ns-configuration", {}).get("config-primitive") # For k8s allows default primitives without validating the parameters - if indata.get("kdu_name") and indata["primitive"] in ("upgrade", "rollback", "status"): + if indata.get("kdu_name") and indata["primitive"] in ("upgrade", "rollback", "status", "inspect", "readme"): # TODO should be checked that rollback only can contains revsision_numbe???? + if not indata.get("member_vnf_index"): + raise EngineException("Missing action parameter 'member_vnf_index' for default KDU primitive '{}'" + .format(indata["primitive"])) return # if not, check primitive for config_primitive in get_iterable(descriptor_configuration): -- 2.25.1