From b85932479226b6314cdbe4a3ed1448b04aab1c62 Mon Sep 17 00:00:00 2001 From: dfilppi Date: Fri, 13 Apr 2018 17:16:41 +0000 Subject: Added logic to call aria adapter Change-Id: Ic711ceceb0a2b3c82a0fae088c24ec09fea8daa7 Issue-ID: SO-441 Signed-off-by: DeWayne Filppi --- .../org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'adapters/mso-vnf-adapter/src/main/java') diff --git a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java index 0a0747a98d..a817a6b427 100644 --- a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java +++ b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java @@ -62,6 +62,7 @@ import org.openecomp.mso.cloud.CloudConfig; import org.openecomp.mso.cloud.CloudConfigFactory; import org.openecomp.mso.cloud.CloudSite; import org.openecomp.mso.cloudify.utils.MsoCloudifyUtils; +import org.openecomp.mso.aria.AriaVduPlugin; import org.openecomp.mso.db.catalog.CatalogDatabase; import org.openecomp.mso.db.catalog.beans.HeatEnvironment; import org.openecomp.mso.db.catalog.beans.HeatTemplate; @@ -95,6 +96,7 @@ public class MsoVnfPluginAdapterImpl implements MsoVnfAdapter { protected MsoHeatUtils heatUtils; protected VfModuleCustomizationToVduMapper vduMapper; protected MsoCloudifyUtils cloudifyUtils; + protected AriaVduPlugin ariaVduPlugin; MsoPropertiesFactory msoPropertiesFactory=new MsoPropertiesFactory(); @@ -131,6 +133,7 @@ public class MsoVnfPluginAdapterImpl implements MsoVnfAdapter { heatUtils = new MsoHeatUtils(MSO_PROP_VNF_ADAPTER, msoPropertiesFactory, cloudConfigFactory); vduMapper = new VfModuleCustomizationToVduMapper(); cloudifyUtils = new MsoCloudifyUtils (MSO_PROP_VNF_ADAPTER, msoPropertiesFactory,cloudConfigFactory); + ariaVduPlugin = new AriaVduPlugin("localhost", 5000); } /** @@ -1227,6 +1230,9 @@ public class MsoVnfPluginAdapterImpl implements MsoVnfAdapter { if (orchestrator.equalsIgnoreCase("CLOUDIFY")) { return cloudifyUtils; } + else if (orchestrator.equalsIgnoreCase("ARIA")) { + return ariaVduPlugin; + } else if (orchestrator.equalsIgnoreCase("HEAT")) { return heatUtils; } -- cgit 1.2.3-korg