2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-28 21:07:47 +00:00

python: ovs: flow: Add idle_age to openflow flows.

Add missing key.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Signed-off-by: Simon Horman <horms@ovn.org>
This commit is contained in:
Adrian Moreno 2024-01-17 12:18:55 +01:00 committed by Simon Horman
parent e72b7b6f17
commit 32f6737b5c
2 changed files with 3 additions and 1 deletions

View File

@ -176,6 +176,7 @@ class OFPFlow(Flow):
"idle_timeout": decode_time, "idle_timeout": decode_time,
"hard_timeout": decode_time, "hard_timeout": decode_time,
"hard_age": decode_time, "hard_age": decode_time,
"idle_age": decode_time,
} }
return KVDecoders(args) return KVDecoders(args)

View File

@ -620,7 +620,7 @@ def test_act(input_string, expected):
"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), KeyValue("cookie", 0x35f946ead8d8f9e4),
@ -628,6 +628,7 @@ def test_act(input_string, expected):
KeyValue("table", 0), KeyValue("table", 0),
KeyValue("n_packets", 12), KeyValue("n_packets", 12),
KeyValue("n_bytes", 254), KeyValue("n_bytes", 254),
KeyValue("idle_age", 117),
], ],
[ [
KeyValue("priority", 4), KeyValue("priority", 4),