From 37c58885d63a701d46aa0a8b614323d1ef10f031 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Thu, 7 Sep 2017 15:52:52 -0400 Subject: Fix installFeatures script Added CCSDK features to SDNC installFeatures.sh script Change-Id: I50b3d6319f5081f8e6afeed58c2e17f8c9c00b9d Issue-ID: CCSDK-76 Signed-off-by: Dan Timoney Former-commit-id: 417522491c88ed0d0b8d8201d75cf7a1cf2e5aac --- .../sdnc/src/main/scripts/installFeatures.sh | 69 +++++++++++++++++++++- 1 file changed, 67 insertions(+), 2 deletions(-) (limited to 'installation') diff --git a/installation/sdnc/src/main/scripts/installFeatures.sh b/installation/sdnc/src/main/scripts/installFeatures.sh index 56a5fe57..90bbc587 100644 --- a/installation/sdnc/src/main/scripts/installFeatures.sh +++ b/installation/sdnc/src/main/scripts/installFeatures.sh @@ -23,16 +23,38 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U} -SDNC_HOME=${SDNC_HOME:-/opt/openecomp/sdnc} +SDNC_HOME=${SDNC_HOME:-/opt/onap/sdnc} SDNC_FEATURE_DIR=${SDNC_FEATURE_DIR:-${SDNC_HOME}/features} +CCSDK_SLI_CORE_FEATURES=" \ + dblib \ + filters \ + sli \ + sliPluginUtils \ + sliapi" + +CCSDK_SLI_ADAPTORS_FEATURES=" \ + aai-service \ + mdsal-resource \ + resource-assignment \ + sql-resource" + +CCSDK_SLI_NORTHBOUND_FEATURES=" \ + asdcApi \ + dataChange" SDNC_NORTHBOUND_FEATURES=" \ vnfapi \ vnftools" +CCSDK_SLI_PLUGINS_FEATURES=" \ + properties-node \ + restapi-call-node" - +CCSDK_SLI_CORE_VERSION=${SDNC_CORE_VERSION:-0.0.1-SNAPSHOT} +CCSDK_SLI_ADAPTORS_VERSION=${SDNC_ADAPTORS_VERSION:-0.0.1-SNAPSHOT} +CCSDK_SLI_NORTHBOUND_VERSION=${SDNC_NORTHBOUND_VERSION:-0.0.1-SNAPSHOT} +CCSDK_SLI_PLUGINS_VERSION=${SDNC_PLUGINS_VERSION:-0.0.1-SNAPSHOT} SDNC_NORTHBOUND_VERSION=${SDNC_NORTHBOUND_VERSION:-1.2.0-SNAPSHOT} echo "Enabling core features" @@ -41,6 +63,49 @@ ${ODL_HOME}/bin/client -u karaf feature:install odl-mdsal-apidocs ${ODL_HOME}/bin/client -u karaf feature:install odl-restconf-all +echo "Installing CCSDK SLI core" +for feature in ${CCSDK_SLI_CORE_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done + +echo "Installing CCSDK SLI adaptors" +for feature in ${CCSDK_SLI_ADAPTORS_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done + +echo "Installing CCSDK SLI northbound" +for feature in ${CCSDK_SLI_NORTHBOUND_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done + +echo "Installing CCSDK SLI plugins" +for feature in ${CCSDK_SLI_PLUGINS_FEATURES} +do + if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ] + then + ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh + else + echo "No installer found for feature sdnc-${feature}" + fi +done echo "Installing SDN-C northbound" -- cgit 1.2.3-korg