Add missing key.
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Adrian Moreno <[email protected]>
---
python/ovs/flow/ofp.py | 1 +
python/ovs/tests/test_ofp.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/python/ovs/flow/ofp.py b/python/ovs/flow/ofp.py
index f1a720d75..3d3226c91 100644
--- a/python/ovs/flow/ofp.py
+++ b/python/ovs/flow/ofp.py
@@ -176,6 +176,7 @@ class OFPFlow(Flow):
"idle_timeout": decode_time,
"hard_timeout": decode_time,
"hard_age": decode_time,
+ "idle_age": decode_time,
}
return KVDecoders(args)
diff --git a/python/ovs/tests/test_ofp.py b/python/ovs/tests/test_ofp.py
index d71ecf08a..7ba444b7b 100644
--- a/python/ovs/tests/test_ofp.py
+++ b/python/ovs/tests/test_ofp.py
@@ -620,7 +620,7 @@ def test_act(input_string, expected):
"input_string,expected",
[
(
- "cookie=0x35f946ead8d8f9e4, duration=97746.271s, table=0,
n_packets=12, n_bytes=254, priority=4,in_port=1", # noqa: E501
+ "cookie=0x35f946ead8d8f9e4, duration=97746.271s, table=0,
n_packets=12, n_bytes=254, idle_age=117, priority=4,in_port=1", # noqa: E501
(
[
KeyValue("cookie", 0x35f946ead8d8f9e4),
@@ -628,6 +628,7 @@ def test_act(input_string, expected):
KeyValue("table", 0),
KeyValue("n_packets", 12),
KeyValue("n_bytes", 254),
+ KeyValue("idle_age", 117),
],
[
KeyValue("priority", 4),
--
2.43.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev