Adding logs to ONOS-config-loader

Change-Id: I48a48c6323348bdc843fc772fc475befca9bdfa7
diff --git a/voltha-infra/Chart.yaml b/voltha-infra/Chart.yaml
index 28ae037..1874c92 100644
--- a/voltha-infra/Chart.yaml
+++ b/voltha-infra/Chart.yaml
@@ -29,7 +29,7 @@
 name: voltha-infra
 
 appVersion: "1.0"
-version: 0.1.10
+version: 0.1.11
 
 dependencies:
   - name: onos-classic
diff --git a/voltha-infra/templates/onos-config-loader-script.yaml b/voltha-infra/templates/onos-config-loader-script.yaml
index b4578d8..8ca2480 100644
--- a/voltha-infra/templates/onos-config-loader-script.yaml
+++ b/voltha-infra/templates/onos-config-loader-script.yaml
@@ -30,14 +30,21 @@
       sleep 5;
     done
 
-    echo -e "Loading netcfg into ONOS\n";
+    echo -e "\n\nLoading netcfg into ONOS\n";
+    cat /opt/configs/netcfg.json;
     responseCode=$(curl --write-out '%{http_code}' --fail -sSL --user {{ .Values.onos.username }}:{{ .Values.onos.password }} -X POST "http://{{ .Release.Name }}-onos-classic-hs:8181/onos/v1/network/configuration/" -H Content-type:application/json -d @/opt/configs/netcfg.json);
     if [[ $responseCode == 207 ]]; then
       echo "Failed to load netcfg, exiting..."
       exit 1
     fi
 
-    echo -e "Loading component configs into ONOS\n";
+    sleep 5;
+    echo -e "Updated netconfig is:";
+    curl --fail -sSL --user {{ .Values.onos.username }}:{{ .Values.onos.password }} -X GET -H 'Accept: application/json' "http://{{ .Release.Name }}-onos-classic-hs:8181/onos/v1/network/configuration";
+    echo -e "\nCompleted on: ";
+    date;
+
+    echo -e "\n\n\nLoading component configs into ONOS\n";
     CFGS=$(ls /opt/configs | grep -v netcfg.json);
     for CFG in ${CFGS};
     do
@@ -47,10 +54,16 @@
         echo -e "Waiting for $CFG to be active";
         sleep 5;
       done
-      echo -e "Loading $CFG config";
+      echo -e "\nLoading $CFG config";
+      cat /opt/configs/$CFG;
       responseCode=$(curl --write-out '%{http_code}' --fail -sSL --user {{ .Values.onos.username }}:{{ .Values.onos.password }} -X POST "http://{{ .Release.Name }}-onos-classic-hs:8181/onos/v1/configuration/$CFG" -H Content-type:application/json -d @/opt/configs/$CFG);
       if [[ $responseCode == 207 ]]; then
         echo "Failed to load $CFG, exiting..."
         exit 1
       fi
+      echo -e "Updated component config for $CFG is:";
+      curl --fail -sSL --user {{ .Values.onos.username }}:{{ .Values.onos.password }} -X GET "http://{{ .Release.Name }}-onos-classic-hs:8181/onos/v1/configuration/$CFG";
+      echo -e "\nCompleted on: ";
+      date;
+      echo -e "\n\n\n"
     done