Nitrogen port : sdnc-oam
[sdnc/oam.git] / installation / sdnc / src / main / scripts / installFeatures.sh
1 #!/bin/bash
2
3 ###
4 # ============LICENSE_START=======================================================
5 # openECOMP : SDN-C
6 # ================================================================================
7 # Copyright (C) 2017 AT&T Intellectual Property. All rights
8 #                                                       reserved.
9 # ================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 #      http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END=========================================================
22 ###
23
24 ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
25 ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U}
26 SDNC_HOME=${SDNC_HOME:-/opt/onap/sdnc}
27 CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
28 SDNC_FEATURE_DIR=${SDNC_FEATURE_DIR:-${SDNC_HOME}/features}
29
30
31
32 SDNC_NORTHBOUND_FEATURES=" \
33   generic-resource-api \
34   vnfapi \
35   vnftools"
36
37
38 SDNC_NORTHBOUND_VERSION=${SDNC_NORTHBOUND_VERSION:-1.3.1-SNAPSHOT}
39
40 # Install CCSDK features
41 ${CCSDK_HOME}/bin/installCcsdkFeatures.sh
42
43
44 echo "Installing SDN-C northbound"
45 for feature in ${SDNC_NORTHBOUND_FEATURES}
46 do
47   if [ -f ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh ]
48   then
49     ${SDNC_FEATURE_DIR}/sdnc-${feature}/install-feature.sh
50   else
51     echo "No installer found for feature sdnc-${feature}"
52   fi
53 done
54
55