summaryrefslogtreecommitdiff
path: root/python/ovs/tests/test_ofp.py
diff options
context:
space:
mode:
authorAdrian Moreno <amorenoz@redhat.com>2022-12-19 17:13:49 +0100
committerIlya Maximets <i.maximets@ovn.org>2022-12-21 18:36:02 +0100
commitc395e9810e07ab957676b4f75e9cacd39dca6839 (patch)
tree40d0681df1edc90dd7f72a1cd839980ab0a4b4de /python/ovs/tests/test_ofp.py
parent542fdad701403c11cfe8356957f934fa657c1742 (diff)
downloadopenvswitch-c395e9810e07ab957676b4f75e9cacd39dca6839.tar.gz
python: Interpret free keys as output in clone.
clone-like actions can also output to ports by specifying the port name. Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'python/ovs/tests/test_ofp.py')
-rw-r--r--python/ovs/tests/test_ofp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/ovs/tests/test_ofp.py b/python/ovs/tests/test_ofp.py
index e17188e2b..27bcf0c47 100644
--- a/python/ovs/tests/test_ofp.py
+++ b/python/ovs/tests/test_ofp.py
@@ -533,6 +533,19 @@ from ovs.flow.decoders import EthMask, IPMask, decode_mask
],
),
(
+ "actions=LOCAL,clone(myport,CONTROLLER)",
+ [
+ KeyValue("output", {"port": "LOCAL"}),
+ KeyValue(
+ "clone",
+ [
+ {"output": {"port": "myport"}},
+ {"output": {"port": "CONTROLLER"}},
+ ]
+ ),
+ ],
+ ),
+ (
"actions=doesnotexist(1234)",
ParseError,
),