summaryrefslogtreecommitdiffstats
path: root/adapters/mso-vnf-adapter/src/main/java
diff options
context:
space:
mode:
authordfilppi <dewayne@cloudify.co>2018-04-13 17:16:41 +0000
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2018-04-16 09:47:37 +0000
commitb85932479226b6314cdbe4a3ed1448b04aab1c62 (patch)
treed895112788cca20a5728204fc59a1abc9641804c /adapters/mso-vnf-adapter/src/main/java
parentcac19bc1c0256f75c4c1ebdccd73213337850fea (diff)
Added logic to call aria adapter
Change-Id: Ic711ceceb0a2b3c82a0fae088c24ec09fea8daa7 Issue-ID: SO-441 Signed-off-by: DeWayne Filppi <dewayne@cloudify.co>
Diffstat (limited to 'adapters/mso-vnf-adapter/src/main/java')
-rw-r--r--adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/MsoVnfPluginAdapterImpl.java6
1 files changed, 6 insertions, 0 deletions
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;
}