summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-09-07 15:52:52 -0400
committerDan Timoney <dtimoney@att.com>2017-09-07 15:52:52 -0400
commit37c58885d63a701d46aa0a8b614323d1ef10f031 (patch)
tree6987e898defee5b7879e1ffc1b1f34b6b70b1259
parent8f255495fab500e9da54bd1cc10d645600dd14ce (diff)
Fix installFeatures script
Added CCSDK features to SDNC installFeatures.sh script Change-Id: I50b3d6319f5081f8e6afeed58c2e17f8c9c00b9d Issue-ID: CCSDK-76 Signed-off-by: Dan Timoney <dtimoney@att.com> Former-commit-id: 417522491c88ed0d0b8d8201d75cf7a1cf2e5aac
-rw-r--r--installation/sdnc/src/main/scripts/installFeatures.sh69
1 files changed, 67 insertions, 2 deletions
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"