3 ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
4 APPC_HOME=${APPC_HOME:-/opt/openecomp/appc}
5 APPC_FEATURE_DIR=${APPC_FEATURE_DIR:-${APPC_HOME}/features}
7 function featureInstall {
9 while [ $COUNT -lt 10 ]; do
10 ${ODL_HOME}/bin/client -u karaf feature:install $1 2> /tmp/installErr
12 if grep -q 'Failed to get the session' /tmp/installErr; then
26 appc-netconf-adapter \
34 echo "Enabling core APP-C features"
35 featureInstall odl-netconf-connector-all
36 featureInstall odl-restconf-noauth
37 featureInstall odl-netconf-topology
39 # When the karaf netconf feature gets installed, need to replace default password with OpenECOMP APP-C ODL Password
40 sed -i 's/admin<\/password>/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U<\/password>/' ${ODL_HOME}/etc/opendaylight/karaf/99-netconf-connector.xml
42 echo "Installing APP-C Features"
45 for feature in ${APPC_FEATURES}
47 if [ -f ${APPC_FEATURE_DIR}/${feature}/install-feature.sh ]
49 ${APPC_FEATURE_DIR}/${feature}/install-feature.sh
51 echo "No installer found for feature ${feature}"