aboutsummaryrefslogtreecommitdiffstats
path: root/appc-provider
diff options
context:
space:
mode:
authorKalpesh Chaniyara <kalpeshkumar.chaniyara@amdocs.com>2017-08-15 14:45:00 +0530
committerKalpesh Chaniyara <kalpeshkumar.chaniyara@amdocs.com>2017-08-15 14:46:36 +0530
commit01316dc253aa962d0eeda3eef19c715832b2dbfc (patch)
treeeb43a51d16c5fd55e70e3e6e6f9933a56a90688d /appc-provider
parent0df7ab4f7ef0bfb21797775ec41fcdfb94e2270c (diff)
Action-Identifier to support vf-module-id
As of now LCM Request Identifier supports vnf-id, vnfc-name and vserver-id. This change supports vf-module-id as action identifier and its value is set in DG context with key input.action-identifiers.vf-module-id when invoking DG Issue-Id : APPC-142 Change-Id: I65d44b073d32e39eaba183b8ce47584441921f3c Signed-off-by: Kalpesh Chaniyara <kalpeshkumar.chaniyara@amdocs.com>
Diffstat (limited to 'appc-provider')
-rw-r--r--appc-provider/appc-provider-bundle/src/main/java/org/openecomp/appc/provider/lcm/util/RequestInputBuilder.java1
-rw-r--r--appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang5
2 files changed, 6 insertions, 0 deletions
diff --git a/appc-provider/appc-provider-bundle/src/main/java/org/openecomp/appc/provider/lcm/util/RequestInputBuilder.java b/appc-provider/appc-provider-bundle/src/main/java/org/openecomp/appc/provider/lcm/util/RequestInputBuilder.java
index 495fa82a6..c323aa5e5 100644
--- a/appc-provider/appc-provider-bundle/src/main/java/org/openecomp/appc/provider/lcm/util/RequestInputBuilder.java
+++ b/appc-provider/appc-provider-bundle/src/main/java/org/openecomp/appc/provider/lcm/util/RequestInputBuilder.java
@@ -140,6 +140,7 @@ public class RequestInputBuilder {
actionIds.setVnfcName(actionIdentifiers.getVnfcName());
actionIds.setvServerId(actionIdentifiers.getVserverId());
actionIds.setVnfId(actionIdentifiers.getVnfId());
+ actionIds.setVfModuleId(actionIdentifiers.getVfModuleId());
this.requestContext.setActionIdentifiers(actionIds);
ActionLevel actionLevel = readActionLevel(actionIds);
diff --git a/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang b/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
index b149abea5..d72b551a8 100644
--- a/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
+++ b/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang
@@ -269,6 +269,11 @@ module appc-provider-lcm {
type string;
mandatory false;
}
+ leaf vf-module-id {
+ description "identifies the VF module to which this action is to be applied.";
+ type string;
+ mandatory false;
+ }
leaf vnfc-name {
description "identifies the VNFC to which this action is to be applied. Some
actions apply only to a component within a VNF (e.g. RESTART is