[VOL-3636] In early stages of ONU-start-up RPC reconcile_device() is not handled correctly
Change-Id: I95cf0423cd3b43a5e04e224a39ac67a406255b71
diff --git a/internal/pkg/onuadaptercore/omci_vlan_config.go b/internal/pkg/onuadaptercore/omci_vlan_config.go
index eb3b65f..aeb6967 100644
--- a/internal/pkg/onuadaptercore/omci_vlan_config.go
+++ b/internal/pkg/onuadaptercore/omci_vlan_config.go
@@ -843,7 +843,7 @@
oFsm.pLastTxMeInstance = meInstance
} else {
logger.Debugw("UniVlanConfigFsm delete VTFD OMCI handling skipped based on device state", log.Fields{
- "device-id": oFsm.deviceID, "device-state": oFsm.pDeviceHandler.deviceReason})
+ "device-id": oFsm.deviceID, "device-state": deviceReasonMap[oFsm.pDeviceHandler.deviceReason]})
}
} else {
//many VTFD already should exists - find and remove the one concerned by the actual remove rule
@@ -886,7 +886,7 @@
oFsm.pLastTxMeInstance = meInstance
} else {
logger.Debugw("UniVlanConfigFsm set VTFD OMCI handling skipped based on device state", log.Fields{
- "device-id": oFsm.deviceID, "device-state": oFsm.pDeviceHandler.deviceReason})
+ "device-id": oFsm.deviceID, "device-state": deviceReasonMap[oFsm.pDeviceHandler.deviceReason]})
}
} else {
logger.Warnw("UniVlanConfigFsm: requested VLAN for removal not found in list - ignore and continue (no VTFD set)",