From 2ff62a6d6026c073efd3e96029ac48a537b13e3e Mon Sep 17 00:00:00 2001 From: c00149107 Date: Fri, 20 Apr 2018 17:02:24 +0800 Subject: Update create flow for E2E service Update create generic flow for E2E service Change-Id: I7f5c912348ce0d0ee9035aa3a5e34979ee14b247 Issue-ID: SO-583 Signed-off-by: c00149107 --- .../java/org/openecomp/mso/adapters/vfc/VfcManager.java | 2 +- .../mso/adapters/vfc/model/NSResourceInputParameter.java | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'adapters/mso-vfc-adapter/src') diff --git a/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/VfcManager.java b/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/VfcManager.java index 8e16d1c22f..0673af2f14 100644 --- a/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/VfcManager.java +++ b/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/VfcManager.java @@ -88,7 +88,7 @@ public class VfcManager { public RestfulResponse createNs(NSResourceInputParameter segInput) throws ApplicationException { // Step1: get service template by node type - String csarId = segInput.getNsOperationKey().getNodeTemplateUUID(); + String csarId = segInput.getNsServiceModelUUID(); // nsdId for NFVO is "id" in the response, while for SDNO is "servcice template id" LOGGER.info("serviceTemplateId is {}, id is {}", csarId); diff --git a/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/model/NSResourceInputParameter.java b/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/model/NSResourceInputParameter.java index 765ee52069..d46844364f 100644 --- a/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/model/NSResourceInputParameter.java +++ b/adapters/mso-vfc-adapter/src/main/java/org/openecomp/mso/adapters/vfc/model/NSResourceInputParameter.java @@ -45,6 +45,8 @@ public class NSResourceInputParameter { private String nsServiceName; private String nsServiceDescription; + + private String nsServiceModelUUID; private NsParameters nsParameters; @@ -136,4 +138,15 @@ public class NSResourceInputParameter { public void setNsScaleParameters(NsScaleParameters nsScaleParameters) { this.nsScaleParameters = nsScaleParameters; } + + + public String getNsServiceModelUUID() { + return nsServiceModelUUID; + } + + + public void setNsServiceModelUUID(String nsServiceModelUUID) { + this.nsServiceModelUUID = nsServiceModelUUID; + } + } -- cgit 1.2.3-korg