[ovs-git] [openvswitch/ovs] 9435b0: Handle refTable values with setkey()

Terry Wilson noreply at github.com
Fri Mar 20 15:48:10 UTC 2020

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 9435b0b8e6b89ddaec7f0a23ce613f4ae5a1f70b
  Author: Terry Wilson <twilson at redhat.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M python/ovs/db/idl.py
    M tests/idltest.ovsschema
    M tests/ovsdb-idl.at
    M tests/test-ovsdb.py

  Log Message:
  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

Signed-off-by: Terry Wilson <twilson at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list