Fix for OLT App Config
diff --git a/voltha b/voltha
index 52ee03b..95051d0 100755
--- a/voltha
+++ b/voltha
@@ -1113,11 +1113,15 @@
push_onos_config "file" "Push ONOS DHCP L2 Relay Configuration" "network/configuration/apps/org.opencord.dhcpl2relay" "onos-files/onos-dhcpl2relay.json"
check_onos_app_active org.opencord.olt
# FIXME use WITH_DHCP and WITH_EAPOL flags to configre OLT App
- if [ $WITH_EAPOL == "yes" ]; then
- push_onos_config "json" "Enable VOLTHA ONOS EAPOL provisioning" "configuration/org.opencord.olt.impl.OltFlowService" '{"enableEapol":true}'
+ # Default value for "enableEapol" is true in OLT App
+ if [ $WITH_EAPOL == "no" ]; then
+ push_onos_config "json" "Disable VOLTHA ONOS EAPOL provisioning" "configuration/org.opencord.olt.impl.OltFlowService" '{"enableEapol":false}'
fi
+ # Default value for "enableDhcpOnProvisioning" is false and for "enableDhcpV4" is true in OLT App
if [ $WITH_DHCP == "yes" ]; then
push_onos_config "json" "Enable VOLTHA ONOS DHCP provisioning" "configuration/org.opencord.olt.impl.OltFlowService" '{"enableDhcpOnProvisioning":true,"enableDhcpV4":true}'
+ elif [ $WITH_DHCP == "no" ]; then
+ push_onos_config "json" "Disable VOLTHA ONOS DHCP provisioning" "configuration/org.opencord.olt.impl.OltFlowService" '{"enableDhcpOnProvisioning":false,"enableDhcpV4":false}'
fi
if [ $WITH_IGMP == "yes" ]; then
push_onos_config "json" "Enable VOLTHA ONOS IGMP provisioning" "configuration/org.opencord.olt.impl.OltFlowService" '{"enableIgmpOnProvisioning":true}'