[VOL-5578]:enhance logging with flow info during flowAdd
Change-Id: I3172fa4db5e23ae8f06902a45d782b1960ee5a71
Signed-off-by: balaji.nagarajan <balaji.nagarajan@radisys.com>
diff --git a/VERSION b/VERSION
index f06fb9e..584a914 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.7.10
+3.7.11
diff --git a/rw_core/core/device/agent_flow.go b/rw_core/core/device/agent_flow.go
index c491699..2f7a3a9 100644
--- a/rw_core/core/device/agent_flow.go
+++ b/rw_core/core/device/agent_flow.go
@@ -81,6 +81,7 @@
desc = err.Error()
return coreutils.DoneResponse(), err
}
+ desc = fmt.Sprintf("cookie-%d", flow.Cookie)
if created {
flowsToAdd = append(flowsToAdd, flow)
} else {
diff --git a/rw_core/core/device/logical_agent_flow.go b/rw_core/core/device/logical_agent_flow.go
index 5b0fd78..9357597 100644
--- a/rw_core/core/device/logical_agent_flow.go
+++ b/rw_core/core/device/logical_agent_flow.go
@@ -94,6 +94,9 @@
return fmt.Errorf("couldnt-updated-flow-stats-%s", strconv.FormatUint(flow.Id, 10))
}
}
+ if !changed {
+ logger.Warnw(ctx, "flow-add-no-change", log.Fields{"device-id": agent.logicalDeviceID, "cookie": mod.Cookie})
+ }
return nil
}