]> xenbits.xensource.com Git - libvirt.git/commit
Attach vm-id to Open vSwitch interfaces.
authorAnsis Atteka <aatteka@nicira.com>
Wed, 7 Mar 2012 07:15:36 +0000 (23:15 -0800)
committerLaine Stump <laine@laine.org>
Thu, 8 Mar 2012 19:44:15 +0000 (14:44 -0500)
commitac8bbdbdfa43ead4dd75179cf0e9948d33ddab33
tree259b7771b1265ff96813cb710adeaf2f2693d3ce
parent38e56abb05cd979d775593839fb849c26b74aebb
Attach vm-id to Open vSwitch interfaces.

This patch will allow OpenFlow controllers to identify which interface
belongs to a particular VM by using the Domain UUID.

ovs-vsctl get Interface vnet0 external_ids
{attached-mac="52:54:00:8C:55:2C", iface-id="83ce45d6-3639-096e-ab3c-21f66a05f7fa", iface-status=active, vm-id="142a90a7-0acc-ab92-511c-586f12da8851"}

V2 changes:
Replaced vm-uuid with vm-id. There was a discussion in Open vSwitch
mailinglist that we should stick with the same DB key postfixes for the
sake of consistency (e.g iface-id, vm-id ...).
src/lxc/lxc_driver.c
src/network/bridge_driver.c
src/qemu/qemu_command.c
src/uml/uml_conf.c
src/util/virnetdevopenvswitch.c
src/util/virnetdevopenvswitch.h
src/util/virnetdevtap.c
src/util/virnetdevtap.h