In general, most actions must be lists since the keys can be repeated.
Acked-by: Simon Horman <[email protected]>
Signed-off-by: Adrian Moreno <[email protected]>
---
python/ovs/flow/odp.py | 6 ++++--
python/ovs/tests/test_odp.py | 12 ++++++------
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/python/ovs/flow/odp.py b/python/ovs/flow/odp.py
index 46697a1bc..7d9b165d4 100644
--- a/python/ovs/flow/odp.py
+++ b/python/ovs/flow/odp.py
@@ -375,13 +375,15 @@ class ODPFlow(Flow):
KVDecoders(
decoders=_decoders,
default_free=decode_free_output,
- )
+ ),
+ is_list=True,
),
"le": nested_kv_decoder(
KVDecoders(
decoders=_decoders,
default_free=decode_free_output,
- )
+ ),
+ is_list=True,
),
}
)
diff --git a/python/ovs/tests/test_odp.py b/python/ovs/tests/test_odp.py
index 401e16b7a..f19ec386e 100644
--- a/python/ovs/tests/test_odp.py
+++ b/python/ovs/tests/test_odp.py
@@ -519,24 +519,24 @@ def test_odp_fields(input_string, expected):
"check_pkt_len",
{
"size": 200,
- "gt": {"output": {"port": 4}},
- "le": {"output": {"port": 5}},
+ "gt": [{"output": {"port": 4}}],
+ "le": [{"output": {"port": 5}}],
},
),
KeyValue(
"check_pkt_len",
{
"size": 200,
- "gt": {"drop": True},
- "le": {"output": {"port": 5}},
+ "gt": [{"drop": True}],
+ "le": [{"output": {"port": 5}}],
},
),
KeyValue(
"check_pkt_len",
{
"size": 200,
- "gt": {"ct": {"nat": True}},
- "le": {"drop": True},
+ "gt": [{"ct": {"nat": True}}],
+ "le": [{"drop": True}],
},
),
],
--
2.43.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev