summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAdrian Moreno <amorenoz@redhat.com>2022-07-08 20:03:04 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-07-15 20:13:38 +0200
commit61e040fc23a8e2baed7ae94e105510e144f608cc (patch)
treed5b0d8cab39d1c90220ea87a95bf0ab7ca2344a4 /python
parentd542f0ea8587f9ae1cad1f9610b6f3ce62dc3b7a (diff)
downloadopenvswitch-61e040fc23a8e2baed7ae94e105510e144f608cc.tar.gz
build-aux: Generate ofp field decoders.
Based on meta-field information extracted by extract_ofp_fields, autogenerate the right decoder to be used. Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'python')
-rw-r--r--python/automake.mk7
-rw-r--r--python/ovs/.gitignore3
2 files changed, 9 insertions, 1 deletions
diff --git a/python/automake.mk b/python/automake.mk
index d11a7ade1..72516d0dd 100644
--- a/python/automake.mk
+++ b/python/automake.mk
@@ -30,6 +30,7 @@ ovs_pyfiles = \
python/ovs/flow/decoders.py \
python/ovs/flow/kv.py \
python/ovs/flow/list.py \
+ python/ovs/flow/ofp_fields.py \
python/ovs/json.py \
python/ovs/jsonrpc.py \
python/ovs/ovsuuid.py \
@@ -127,3 +128,9 @@ EXTRA_DIST += python/ovs/dirs.py.template
CLEANFILES += python/ovs/dirs.py
EXTRA_DIST += python/TODO.rst
+
+$(srcdir)/python/ovs/flow/ofp_fields.py: $(srcdir)/build-aux/gen_ofp_field_decoders include/openvswitch/meta-flow.h
+ $(AM_V_GEN)$(run_python) $< $(srcdir)/include/openvswitch/meta-flow.h > $@.tmp
+ $(AM_V_at)mv $@.tmp $@
+EXTRA_DIST += python/ovs/flow/ofp_fields.py
+CLEANFILES += python/ovs/flow/ofp_fields.py
diff --git a/python/ovs/.gitignore b/python/ovs/.gitignore
index 8bbcd824f..40a63d27d 100644
--- a/python/ovs/.gitignore
+++ b/python/ovs/.gitignore
@@ -1,2 +1,3 @@
-version.py
dirs.py
+flow/ofp_fields.py
+version.py