Install SDNR OOF PCI feature in SDNC bootup 72/85272/1
authorSandeep Shah <sandeep.shah2@techmahindra.com>
Sun, 14 Apr 2019 17:38:00 +0000 (12:38 -0500)
committerSandeep Shah <sandeep.shah2@techmahindra.com>
Sun, 14 Apr 2019 17:38:00 +0000 (12:38 -0500)
Modification to startODL.sh file to install sdnr-northbound-all
feature

Change-Id: If7656b0614aec7f23f3e44634cd42098633003d0
Issue-ID: SDNC-730
Signed-off-by: SandeepLinux <sandeep.shah2@techmahindra.com>
Former-commit-id: 2eceea1603d4c73134e220b1b3f84877821b5f20

installation/sdnc/src/main/scripts/startODL.sh

index ccddd94..2c0aa7b 100755 (executable)
@@ -51,6 +51,10 @@ function install_sdnrwt_features() {
   addToFeatureBoot "$SDNRWT_BOOTFEATURES" $SDNRWT_REPOSITORY
 }
 
+function install_sdnr_northbound_features() {
+  addToFeatureBoot "$SDNR_NORTHBOUND_BOOTFEATURES" $SDNR_NORTHBOUND_REPOSITORY
+}
+
 function enable_odl_cluster(){
   if [ -z $SDNC_REPLICAS ]; then
      echo "SDNC_REPLICAS is not configured in Env field"
@@ -114,12 +118,16 @@ MY_ODL_CLUSTER=${MY_ODL_CLUSTER:-127.0.0.1}
 INSTALLED_DIR=${INSTALLED_FILE:-/opt/opendaylight/current/daexim}
 SDNRWT=${SDNRWT:-false}
 SDNRWT_BOOTFEATURES=${SDNRWT_BOOTFEATURES:-sdnr-wt-feature-aggregator}
+SDNR_NORTHBOUND=${SDNR_NORTHBOUND:-false}
+SDNR_NORTHBOUND_BOOTFEATURES=${SDNR_NORTHBOUND_BOOTFEATURES:-sdnr-northbound-all}
 
 
 echo "Settings:"
 echo "  ENABLE_ODL_CLUSTER=$ENABLE_ODL_CLUSTER"
 echo "  SDNC_REPLICAS=$SDNC_REPLICAS"
 echo "  SDNRWT=$SDNRWT"
+echo "  SDNR_NORTHBOUND=$SDNR_NORTHBOUND"
+
 
 #
 # Wait for database
@@ -156,6 +164,8 @@ then
 
        if $SDNRWT ; then install_sdnrwt_features ; fi
 
+  if $SDNR_NORTHBOUND ; then install_sdnr_northbound_features ; fi
+
        echo "Installed at `date`" > ${INSTALLED_DIR}/.installed
 fi