[VOL-5605] ignore flownot found error
Change-Id: I5fccf550f73c4b97ed8a947886727cbdea3d73b9
Signed-off-by: madhumatigouda <madhumati.gouda@radisys.com>
diff --git a/VERSION b/VERSION
index 903d1bb..ead3167 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.6.22
+4.6.23
diff --git a/internal/pkg/core/openolt_flowmgr.go b/internal/pkg/core/openolt_flowmgr.go
index 958ab19..640a00b 100644
--- a/internal/pkg/core/openolt_flowmgr.go
+++ b/internal/pkg/core/openolt_flowmgr.go
@@ -1699,6 +1699,18 @@
// Assume the flow is removed
return nil
}
+ if e, ok := status.FromError(err); ok {
+ if e.Code() == codes.NotFound {
+ logger.Infow(ctx, "flow-not-found-on-device-while-removing",
+ log.Fields{
+ "err": err,
+ "flow-id": deviceFlow.FlowId,
+ "device-id": f.deviceHandler.device.Id,
+ "cookie": deviceFlow.Cookie})
+ return nil
+ }
+ }
+ logger.Warnw(ctx, "failed-to-remove-flow-from-device", log.Fields{"err": err, "flow-id": deviceFlow.FlowId, "device-id": f.deviceHandler.device.Id, "cookie": deviceFlow.Cookie})
return olterrors.NewErrFlowOp("remove", deviceFlow.FlowId, log.Fields{"deviceFlow": deviceFlow}, err)
}
logger.Infow(ctx, "flow-removed-from-device-successfully", log.Fields{