VOL-3314: ONU discovered entry is not cleared in OLT adapter on ONU
startup failure event
Bump minor version post VOLTHA2.4 branch out
Change-Id: Ic9493b7186b97e18b10120c250f6fb58c35fd8a2
diff --git a/.gitreview b/.gitreview
index a5311ab..54942b9 100644
--- a/.gitreview
+++ b/.gitreview
@@ -3,3 +3,4 @@
port=29418
project=voltha-openolt-adapter.git
defaultremote=origin
+defaultbranch=voltha-2.4
diff --git a/VERSION b/VERSION
index 3f5987a..b0f6bf0 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.4.9
+2.4.10
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index d291935..91c9ced 100644
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -1243,8 +1243,10 @@
func (dh *DeviceHandler) updateOnuStates(onuDevice *voltha.Device, onuInd *oop.OnuIndication) error {
ctx := context.TODO()
logger.Debugw("onu-indication-for-state", log.Fields{"onuIndication": onuInd, "device-id": onuDevice.Id, "operStatus": onuDevice.OperStatus, "adminStatus": onuDevice.AdminState})
- if onuInd.AdminState == "down" {
- // The ONU has gone admin_state "down" and we expect the ONU to send discovery again
+ if onuInd.AdminState == "down" || onuInd.OperState == "down" {
+ // The ONU has gone admin_state "down" or oper_state "down" - we expect the ONU to send discovery again
+ // The ONU admin_state is "up" while "oper_state" is down in cases where ONU activation fails. In this case
+ // the ONU sends Discovery again.
dh.discOnus.Delete(onuDevice.SerialNumber)
// Tests have shown that we sometimes get OperState as NOT down even if AdminState is down, forcing it
if onuInd.OperState != "down" {