VOL-4147
Add support of setting operation state to RECONCILE_FAILED from adapters
Change-Id: I419517fc741abb5d625862740c91e291f02df89f
diff --git a/rw_core/core/device/agent_transient_state.go b/rw_core/core/device/agent_transient_state.go
index 6b5b100..6f75ecc 100644
--- a/rw_core/core/device/agent_transient_state.go
+++ b/rw_core/core/device/agent_transient_state.go
@@ -74,8 +74,8 @@
return nil
}
-func (agent *Agent) isReconcileInProgress() bool {
+func (agent *Agent) isInReconcileState() bool {
device := agent.getDeviceReadOnlyWithoutLock()
- return device.OperStatus == common.OperStatus_RECONCILING ||
+ return device.OperStatus == common.OperStatus_RECONCILING || device.OperStatus == common.OperStatus_RECONCILING_FAILED ||
agent.matchTransientState(voltha.DeviceTransientState_RECONCILE_IN_PROGRESS)
}