diff options
Diffstat (limited to 'appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main')
9 files changed, 55 insertions, 55 deletions
diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleActivator.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleActivator.java index 865841db2..d76cd50f1 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleActivator.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleActivator.java @@ -22,17 +22,17 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible; +package org.onap.appc.adapter.ansible; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceRegistration; -import org.openecomp.appc.Constants; -import org.openecomp.appc.adapter.ansible.impl.AnsibleAdapterImpl; -import org.openecomp.appc.configuration.Configuration; -import org.openecomp.appc.configuration.ConfigurationFactory; -import org.openecomp.appc.i18n.Msg; +import org.onap.appc.Constants; +import org.onap.appc.adapter.ansible.impl.AnsibleAdapterImpl; +import org.onap.appc.configuration.Configuration; +import org.onap.appc.configuration.ConfigurationFactory; +import org.onap.appc.i18n.Msg; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleAdapter.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleAdapter.java index da710f34f..7bff184bc 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleAdapter.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/AnsibleAdapter.java @@ -22,11 +22,11 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible; +package org.onap.appc.adapter.ansible; import java.util.Map; -import org.openecomp.appc.exceptions.APPCException; +import org.onap.appc.exceptions.APPCException; import org.onap.ccsdk.sli.core.sli.SvcLogicContext; import org.onap.ccsdk.sli.core.sli.SvcLogicJavaPlugin; import org.onap.ccsdk.sli.core.sli.SvcLogicException; diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/AnsibleAdapterImpl.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/AnsibleAdapterImpl.java index 434fbe673..0b426bb26 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/AnsibleAdapterImpl.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/AnsibleAdapterImpl.java @@ -22,16 +22,16 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible.impl; +package org.onap.appc.adapter.ansible.impl; import java.util.Map; import java.util.Properties; import java.lang.*; -import org.openecomp.appc.configuration.Configuration; -import org.openecomp.appc.configuration.ConfigurationFactory; -import org.openecomp.appc.exceptions.APPCException; +import org.onap.appc.configuration.Configuration; +import org.onap.appc.configuration.ConfigurationFactory; +import org.onap.appc.exceptions.APPCException; import org.onap.ccsdk.sli.core.sli.SvcLogicContext; import org.onap.ccsdk.sli.core.sli.SvcLogicException; @@ -44,12 +44,12 @@ import org.json.JSONException; -import org.openecomp.appc.adapter.ansible.AnsibleAdapter; +import org.onap.appc.adapter.ansible.AnsibleAdapter; -import org.openecomp.appc.adapter.ansible.model.AnsibleResult; -import org.openecomp.appc.adapter.ansible.model.AnsibleMessageParser; -import org.openecomp.appc.adapter.ansible.model.AnsibleResultCodes; -import org.openecomp.appc.adapter.ansible.model.AnsibleServerEmulator; +import org.onap.appc.adapter.ansible.model.AnsibleResult; +import org.onap.appc.adapter.ansible.model.AnsibleMessageParser; +import org.onap.appc.adapter.ansible.model.AnsibleResultCodes; +import org.onap.appc.adapter.ansible.model.AnsibleServerEmulator; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; @@ -166,7 +166,7 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { * Returns the symbolic name of the adapter * * @return The adapter name - * @see org.openecomp.appc.adapter.rest.AnsibleAdapter#getAdapterName() + * @see org.onap.appc.adapter.rest.AnsibleAdapter#getAdapterName() */ @Override public String getAdapterName() { @@ -184,8 +184,8 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { private void doFailure(SvcLogicContext svcLogic, int code, String message) throws SvcLogicException { svcLogic.setStatus(OUTCOME_FAILURE); - svcLogic.setAttribute("org.openecomp.appc.adapter.ansible.result.code",Integer.toString(code)); - svcLogic.setAttribute("org.openecomp.appc.adapter.ansible.message",message); + svcLogic.setAttribute("org.onap.appc.adapter.ansible.result.code",Integer.toString(code)); + svcLogic.setAttribute("org.onap.appc.adapter.ansible.message",message); throw new SvcLogicException("Ansible Adapter Error = " + message ); } @@ -204,7 +204,7 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { // Create the http client instance // type of client is extracted from the property file parameter - // org.openecomp.appc.adapter.ansible.clientType + // org.onap.appc.adapter.ansible.clientType // It can be : // 1. TRUST_ALL (trust all SSL certs). To be used ONLY in dev // 2. TRUST_CERT (trust only those whose certificates have been stored in the trustStore file) @@ -212,7 +212,7 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { // revert. To be used in PROD try{ - String clientType = props.getProperty("org.openecomp.appc.adapter.ansible.clientType"); + String clientType = props.getProperty("org.onap.appc.adapter.ansible.clientType"); logger.info("Ansible http client type set to " + clientType); if (clientType.equals("TRUST_ALL")){ @@ -221,8 +221,8 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { } else if (clientType.equals("TRUST_CERT")){ // set path to keystore file - String trustStoreFile = props.getProperty("org.openecomp.appc.adapter.ansible.trustStore"); - String key = props.getProperty("org.openecomp.appc.adapter.ansible.trustStore.trustPasswd"); + String trustStoreFile = props.getProperty("org.onap.appc.adapter.ansible.trustStore"); + String key = props.getProperty("org.onap.appc.adapter.ansible.trustStore.trustPasswd"); char [] trustStorePasswd = key.toCharArray(); String trustStoreType = "JKS"; logger.info("Creating http client with trustmanager from " + trustStoreFile); @@ -251,9 +251,9 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { // Public Method to post request to execute playbook. Posts the following back // to Svc context memory - // org.openecomp.appc.adapter.ansible.req.code : 100 if successful - // org.openecomp.appc.adapter.ansible.req.messge : any message - // org.openecomp.appc.adapter.ansible.req.Id : a unique uuid to reference the request + // org.onap.appc.adapter.ansible.req.code : 100 if successful + // org.onap.appc.adapter.ansible.req.messge : any message + // org.onap.appc.adapter.ansible.req.Id : a unique uuid to reference the request public void reqExec(Map <String, String> params, SvcLogicContext ctx) throws SvcLogicException { @@ -329,9 +329,9 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { } - ctx.setAttribute("org.openecomp.appc.adapter.ansible.result.code", Integer.toString(code)); - ctx.setAttribute("org.openecomp.appc.adapter.ansible.message", message ); - ctx.setAttribute("org.openecomp.appc.adapter.ansible.Id", Id); + ctx.setAttribute("org.onap.appc.adapter.ansible.result.code", Integer.toString(code)); + ctx.setAttribute("org.onap.appc.adapter.ansible.message", message ); + ctx.setAttribute("org.onap.appc.adapter.ansible.Id", Id); } @@ -394,15 +394,15 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { } else { logger.info(String.format("Ansible Request %s finished with Result %s, Message = %s", params.get("Id"), OUTCOME_FAILURE, message)); - ctx.setAttribute("org.openecomp.appc.adapter.ansible.results", results); + ctx.setAttribute("org.onap.appc.adapter.ansible.results", results); doFailure(ctx, code, message ); return; } - ctx.setAttribute("org.openecomp.appc.adapter.ansible.result.code", Integer.toString(400)); - ctx.setAttribute("org.openecomp.appc.adapter.ansible.message",message); - ctx.setAttribute("org.openecomp.appc.adapter.ansible.results", results); + ctx.setAttribute("org.onap.appc.adapter.ansible.result.code", Integer.toString(400)); + ctx.setAttribute("org.onap.appc.adapter.ansible.message",message); + ctx.setAttribute("org.onap.appc.adapter.ansible.results", results); ctx.setStatus(OUTCOME_SUCCESS); } @@ -410,7 +410,7 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { // Public method to get logs from plyabook execution for a specifcic request // It blocks till the Ansible Server responds or the session times out // very similar to reqExecResult - // logs are returned in the DG context variable org.openecomp.appc.adapter.ansible.log + // logs are returned in the DG context variable org.onap.appc.adapter.ansible.log public void reqExecLog(Map<String, String> params, SvcLogicContext ctx) throws SvcLogicException{ @@ -442,7 +442,7 @@ public class AnsibleAdapterImpl implements AnsibleAdapter { doFailure(ctx, AnsibleResultCodes.UNKNOWN_EXCEPTION.getValue(), "Exception encountered retreiving output : " + e.getMessage()); } - ctx.setAttribute("org.openecomp.appc.adapter.ansible.log",message); + ctx.setAttribute("org.onap.appc.adapter.ansible.log",message); ctx.setStatus(OUTCOME_SUCCESS); } diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/ConnectionBuilder.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/ConnectionBuilder.java index b3d1d4c02..e84a85a0c 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/ConnectionBuilder.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/impl/ConnectionBuilder.java @@ -22,7 +22,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible.impl; +package org.onap.appc.adapter.ansible.impl; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; @@ -56,9 +56,9 @@ import org.apache.http.conn.ssl.SSLContexts; import org.apache.http.conn.ssl.TrustSelfSignedStrategy; -import org.openecomp.appc.exceptions.APPCException; -import org.openecomp.appc.adapter.ansible.model.AnsibleResult; -import org.openecomp.appc.adapter.ansible.model.AnsibleResultCodes; +import org.onap.appc.exceptions.APPCException; +import org.onap.appc.adapter.ansible.model.AnsibleResult; +import org.onap.appc.adapter.ansible.model.AnsibleResultCodes; /** diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleMessageParser.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleMessageParser.java index a1798e164..6bebd73fe 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleMessageParser.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleMessageParser.java @@ -22,7 +22,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible.model; +package org.onap.appc.adapter.ansible.model; /** * This module imples the APP-C/Ansible Server interface @@ -36,8 +36,8 @@ import com.google.common.base.Strings; import org.json.JSONObject; import org.json.JSONArray; import org.json.JSONException; -import org.openecomp.appc.exceptions.APPCException; -import org.openecomp.appc.adapter.ansible.model.AnsibleResult; +import org.onap.appc.exceptions.APPCException; +import org.onap.appc.adapter.ansible.model.AnsibleResult; /** diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResult.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResult.java index 29228e574..a4bbcbef8 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResult.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResult.java @@ -22,7 +22,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible.model; +package org.onap.appc.adapter.ansible.model; /* Simple class to store code and message returned by POST/GET to an Ansible Server */ diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResultCodes.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResultCodes.java index dbcdb75ee..986ad3e6a 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResultCodes.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleResultCodes.java @@ -22,7 +22,7 @@ * ============LICENSE_END========================================================= */ -package org.openecomp.appc.adapter.ansible.model; +package org.onap.appc.adapter.ansible.model; import java.util.*; diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleServerEmulator.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleServerEmulator.java index aabced364..c430743ad 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleServerEmulator.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/openecomp/appc/adapter/ansible/model/AnsibleServerEmulator.java @@ -30,7 +30,7 @@ as a replacement for methods from ConnectionBuilder class */ -package org.openecomp.appc.adapter.ansible.model; +package org.onap.appc.adapter.ansible.model; import java.util.*; import java.util.regex.Pattern; @@ -40,8 +40,8 @@ import com.google.common.base.Strings; import org.json.JSONObject; import org.json.JSONArray; import org.json.JSONException; -import org.openecomp.appc.exceptions.APPCException; -import org.openecomp.appc.adapter.ansible.model.AnsibleResult; +import org.onap.appc.exceptions.APPCException; +import org.onap.appc.adapter.ansible.model.AnsibleResult; public class AnsibleServerEmulator { diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/resources/org/openecomp/appc/default.properties b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/resources/org/openecomp/appc/default.properties index 0736b963a..d49c0396c 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/resources/org/openecomp/appc/default.properties +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/resources/org/openecomp/appc/default.properties @@ -29,20 +29,20 @@ # # Define the name and path of any user-provided configuration (bootstrap) file that can be loaded # to supply configuration options -org.openecomp.appc.bootstrap.file=appc.properties -org.openecomp.appc.bootstrap.path=${user.home},/opt/opendaylight/current/properties +org.onap.appc.bootstrap.file=appc.properties +org.onap.appc.bootstrap.path=${user.home},/opt/opendaylight/current/properties appc.application.name=APPC # # Define the message resource bundle name to be loaded -org.openecomp.appc.resources=org.openecomp/appc/i18n/MessageResources +org.onap.appc.resources=org.onap/appc/i18n/MessageResources # # The name of the adapter. -org.openecomp.appc.provider.adaptor.name=org.openecomp.appc.appc_ansible_adapter +org.onap.appc.provider.adaptor.name=org.onap.appc.appc_ansible_adapter # Default truststore path and password -org.openecomp.appc.adapter.ansible.trustStore=/opt/opendaylight/tls-client/mykeystore.js -org.openecomp.appc.adapter.ansible.trustStore.trustPasswd=changeit -org.openecomp.appc.adapter.ansible.clientType=DEFAULT +org.onap.appc.adapter.ansible.trustStore=/opt/opendaylight/tls-client/mykeystore.js +org.onap.appc.adapter.ansible.trustStore.trustPasswd=changeit +org.onap.appc.adapter.ansible.clientType=DEFAULT |