diff options
author | Aaron Conole <aconole@redhat.com> | 2024-06-25 13:22:40 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-06-27 15:44:07 -0700 |
commit | 37de65a764ed329408a7ce339ee6283a4a5b682c (patch) | |
tree | 09c6c66d0f4aa235804b057595b19b35c4d40fbd /tools/testing/selftests/net/lib/py/utils.py | |
parent | f94ecbc920925d5922d68a434f76aa8ef8d7f21e (diff) | |
download | linux-37de65a764ed329408a7ce339ee6283a4a5b682c.tar.gz linux-37de65a764ed329408a7ce339ee6283a4a5b682c.tar.bz2 linux-37de65a764ed329408a7ce339ee6283a4a5b682c.zip |
selftests: openvswitch: Refactor actions parsing.
Until recently, the ovs-dpctl utility was used with a limited actions set
and didn't need to have support for multiple similar actions. However,
when adding support for tunnels, it will be important to support multiple
set() actions in a single flow. When printing these actions, the existing
code will be unable to print all of the sets - it will only print the
first.
Refactor this code to be easier to read and support multiple actions of the
same type in an action list.
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20240625172245.233874-3-aconole@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions