Previously the complete table.rows object was recreated, 
which caused the loss of custom indexes.

This behavior is now consistent with the C implementation.
See discussion [0] for more details.

[0] 
https://patchwork.ozlabs.org/project/openvswitch/patch/z64r_bzhcdcys...@sit-sdelap1634.int.lidl.net/

Signed-off-by: Max Lamprecht <max.lamprecht@stackit.cloud>
---
 python/ovs/db/idl.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py
index 384428c3f..f01e21b5e 100644
--- a/python/ovs/db/idl.py
+++ b/python/ovs/db/idl.py
@@ -796,7 +796,7 @@ class Idl(object):
         for table in self.tables.values():
             if table.rows:
                 changed = True
-                table.rows = custom_index.IndexedRows(table)
+                table.rows.clear()

         self.cond_seqno = 0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to