VOL-3403: OLT goes into reboot in in-band mode even when in-band interface has valid IP
- Bug fix in watchdog script
- Logging enhancements in watchdog script
- copy watchdog script config file into debian package
Change-Id: Ic7dbfc614120fe49301980cea51044637772e966
diff --git a/agent/inband/config/inband.config b/agent/inband/config/inband.config
index eb737a4..6dddb0b 100644
--- a/agent/inband/config/inband.config
+++ b/agent/inband/config/inband.config
@@ -16,3 +16,6 @@
# enable out of band connection to OLT?
enable_out_of_band_connection=no
+
+# wait time before configuring in-band on BAL
+wait_time_bal_ready=45
diff --git a/agent/inband/scripts/start_inband_oltservices.sh b/agent/inband/scripts/start_inband_oltservices.sh
index 016c1b7..cf59334 100644
--- a/agent/inband/scripts/start_inband_oltservices.sh
+++ b/agent/inband/scripts/start_inband_oltservices.sh
@@ -78,7 +78,7 @@
OPENOLT_ARG_INPUT_FILE=/etc/default/openolt
# Wait time for BAL to get ready
-WAIT_TIME_BAL_READY=80
+WAIT_TIME_BAL_READY=$(awk '/wait_time_bal_ready/{print $0}' ${INBAND_CONFIG_FILE} | awk -F "=" '{print $2}')
#------------------------------------------------------------------------------
# Function Name: does_logger_exist
@@ -532,7 +532,7 @@
else
info_message "Inband interface ${interface} is not up, continuously retrying for DHCP IP assignment"
info_message "Inband interface ${interface} is not up with valid IP hence not starting openolt service"
- sleep 10
+ sleep 5
continue
fi
fi