]> git.proxmox.com Git - mirror_ovs.git/commit
Handle refTable values with setkey()
authorTerry Wilson <twilson@redhat.com>
Fri, 20 Mar 2020 15:22:38 +0000 (15:22 +0000)
committerBen Pfaff <blp@ovn.org>
Fri, 20 Mar 2020 15:47:53 +0000 (08:47 -0700)
commit9435b0b8e6b89ddaec7f0a23ce613f4ae5a1f70b
treeec1ee33fa07bfa7ec20d677c1f7c51c589feafa7
parent047b920ea66d128575211e79f9f91be89bdce270
Handle refTable values with setkey()

For columns like QoS.queues where we have a map containing refTable
values, assigning w/ __setattr__ e.g. qos.queues={1: $queue_row}
works, but using using qos.setkey('queues', 1, $queue_row) results
in an Exception. The opdat argument can essentially just be the
JSON representation of the map column instead of trying to build
it.

Signed-off-by: Terry Wilson <twilson@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
python/ovs/db/idl.py
tests/idltest.ovsschema
tests/ovsdb-idl.at
tests/test-ovsdb.py