2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-17 14:28:02 +00:00
Files
openvswitch/python/ovs
Adrian Moreno d33e548fc7 python: Make key-value matching strict by default.
Currently, if a key is not found in the decoder information, we use the
default decoder which typically returns a string.

This not only means we can go out of sync with the C code without
noticing but it's also error prone as malformed flows could be parsed
without warning.

Make KeyValue parsing strict, raising an error if a decoder is not found
for a key.
This behaviour can be turned off globally by running 'KVDecoders.strict
= False' but it's generally not recommended. Also, if a KVDecoder does
need this default behavior, it can be explicitly configured specifying
it's default decoder.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Acked-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2022-12-21 18:36:02 +01:00
..
2019-12-20 12:23:06 -08:00
2017-03-08 21:11:48 -08:00
2019-12-20 12:23:06 -08:00
2019-12-20 12:23:06 -08:00
2021-11-03 16:00:04 +01:00
2021-11-03 16:00:04 +01:00
2019-01-11 08:45:04 -08:00
2019-12-20 12:23:06 -08:00