aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-12-03 17:32:12 +0200
committerOfir Sonsino <os0695@att.com>2017-12-10 11:48:44 +0200
commita03a411f057059fc418878a64393414178c9f310 (patch)
treeae5e1b29464ae2ac994f886492b578aa18338b9a /vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java
parent5a788169f35ec21ff5fe7085254f539c03e80d99 (diff)
Align changes to Amsterdam
Change-Id: I392a33f0fb1f23e56877b544fb9b9085e1499d85 Issue-ID: VID-97 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java')
-rw-r--r--vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java
index cd6003ad4..f6847e45d 100644
--- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java
+++ b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoBusinessLogic.java
@@ -153,7 +153,7 @@ public class MsoBusinessLogic {
return msoClientInterface.deleteVnf(requestDetails, vnf_endpoint);
}
- public MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId) throws Exception{
+ public MsoResponseWrapper deleteVfModule(RequestDetails requestDetails, String serviceInstanceId, String vnfInstanceId, String vfModuleId) throws Exception{
String methodName = "deleteVfModule";
logger.debug(EELFLoggerDelegate.debugLogger, dateFormat.format(new Date()) + "<== " + methodName + " start");
@@ -164,8 +164,9 @@ public class MsoBusinessLogic {
throw exception;
}
- String svc_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId);
- String delete_vf_endpoint = svc_endpoint.replaceFirst(VNF_INSTANCE_ID, vnfInstanceId);
+ String vf__modules_endpoint = endpoint.replaceFirst(SVC_INSTANCE_ID, serviceInstanceId).replaceFirst(VNF_INSTANCE_ID, vnfInstanceId);
+
+ String delete_vf_endpoint = vf__modules_endpoint + '/' + vfModuleId;
return msoClientInterface.deleteVfModule(requestDetails, delete_vf_endpoint);
}