[VOL-5393]-skip the unknowninstance error during delete of flow
Change-Id: I3d66c371e7a419680349d911fd47c00f952c19fc
Signed-off-by: Akash Soni <akash.soni@radisys.com>
diff --git a/internal/pkg/avcfg/omci_ani_config.go b/internal/pkg/avcfg/omci_ani_config.go
index fb1399a..e04c850 100755
--- a/internal/pkg/avcfg/omci_ani_config.go
+++ b/internal/pkg/avcfg/omci_ani_config.go
@@ -1399,7 +1399,10 @@
return
}
logger.Debugw(ctx, "UniPonAniConfigFsm DeleteResponse Data", log.Fields{"device-id": oFsm.deviceID, "data-fields": msgObj})
- if msgObj.Result != me.Success {
+ if msgObj.Result == me.UnknownInstance {
+ logger.Warnw(ctx, "UniPonAniConfigFsm - Unknow Instance",
+ log.Fields{"device-id": oFsm.deviceID, "data-fields": msgObj, "Error": msgObj.Result})
+ } else if msgObj.Result != me.Success {
logger.Errorw(ctx, "UniPonAniConfigFsm - Omci DeleteResponse Error",
log.Fields{"device-id": oFsm.deviceID, "Error": msgObj.Result})
//TODO: - later: possibly force FSM into abort or ignore some errors for some messages?
diff --git a/internal/pkg/avcfg/omci_vlan_config.go b/internal/pkg/avcfg/omci_vlan_config.go
index 2f8e37c..bfe1bc9 100755
--- a/internal/pkg/avcfg/omci_vlan_config.go
+++ b/internal/pkg/avcfg/omci_vlan_config.go
@@ -2127,7 +2127,10 @@
oFsm.deviceID)
}
logger.Debugw(ctx, "UniVlanConfigFsm DeleteResponse Data", log.Fields{"device-id": oFsm.deviceID, "data-fields": msgObj})
- if msgObj.Result != me.Success {
+ if msgObj.Result == me.UnknownInstance {
+ logger.Warnw(ctx, "UniVlanConfigFsm - Unknow Instance",
+ log.Fields{"device-id": oFsm.deviceID, "data-fields": msgObj, "Error": msgObj.Result})
+ } else if msgObj.Result != me.Success {
logger.Errorw(ctx, "UniVlanConfigFsm - Omci DeleteResponse Error - later: drive FSM to abort state ?",
log.Fields{"device-id": oFsm.deviceID, "Error": msgObj.Result})
// possibly force FSM into abort or ignore some errors for some messages?