amorenoz / ovs-dbg

Scripts to help debug OVS and OVN
Apache License 2.0
22 stars 8 forks source link

Fix filtering on nested values #54

Closed amorenoz closed 2 years ago

amorenoz commented 2 years ago

On nested values (dictionaries) we traverse them to find the right key for evaluation so that an expression like "key1.key2.key3=value" works.

They key is found correctly but the evaluation is performed against the global value. Fix by making _find_data_in_kv return a tuple (kv, data) on successful match

Signed-off-by: Adrian Moreno amorenoz@redhat.com