diff mbox series

[ovs-dev,v4,6/8] python: ovs: flow: Add idle_age to openflow flows.

Message ID 20240117111902.1607239-7-amorenoz@redhat.com
State Accepted
Delegated to: Simon Horman
Headers show
Series python: Miscelaneous flow parsing fixes. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation fail test: fail

Commit Message

Adrian Moreno Jan. 17, 2024, 11:18 a.m. UTC
Add missing key.

Acked-by: Simon Horman <horms@ovn.org>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
---
 python/ovs/flow/ofp.py       | 1 +
 python/ovs/tests/test_ofp.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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),