]> git.proxmox.com Git - ovs.git/commit - tests/ovn-controller.at
ovn-controller: Add datapath-type and iface-types in chassis:external_ids
authorNuman Siddique <nusiddiq@redhat.com>
Sat, 30 Jul 2016 10:02:01 +0000 (15:32 +0530)
committerBen Pfaff <blp@ovn.org>
Sat, 13 Aug 2016 16:20:22 +0000 (09:20 -0700)
commit5236c73a1ef4cbee104050b6cddd423f9ff8f54d
treea5c0aed04bb2841b3bdacf9aaf55a7b540170fae
parent0072e931b207f491717f94b91e098ecda30e4908
ovn-controller: Add datapath-type and iface-types in chassis:external_ids

This patch reads the 'Bridge.datapath_type' column value of the integration
bridge and 'Open_vSwitch.iface_types' column value and sets these in the
external_ids:datapath-type and external_ids:iface-types of Chassis table.

This will provide hints to the CMS or clients monitoring OVN SB DB to
determine the datapath type (DPDK or non-DPDK) configured and take some
actions based on it.

One usecase is, OVN neutron plugin can use this information to set the
vif_type (ovs or vhostuser) during the port binding.

Signed-off-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
ovn/controller/chassis.c
ovn/controller/chassis.h
ovn/controller/ovn-controller.8.xml
ovn/controller/ovn-controller.c
ovn/ovn-sb.xml
tests/ovn-controller.at