libvirt/src/lxc
Ansis Atteka df81004632 network: support Open vSwitch
This patch allows libvirt to add interfaces to already
existing Open vSwitch bridges. The following syntax in
domain XML file can be used:

    <interface type='bridge'>
      <mac address='52:54:00:d0:3f:f2'/>
      <source bridge='ovsbr'/>
      <virtualport type='openvswitch'>
        <parameters interfaceid='921a80cd-e6de-5a2e-db9c-ab27f15a6e1d'/>
      </virtualport>
      <address type='pci' domain='0x0000' bus='0x00'
                          slot='0x03' function='0x0'/>
    </interface>

or if libvirt should auto-generate the interfaceid use
following syntax:

    <interface type='bridge'>
      <mac address='52:54:00:d0:3f:f2'/>
      <source bridge='ovsbr'/>
      <virtualport type='openvswitch'>
      </virtualport>
      <address type='pci' domain='0x0000' bus='0x00'
                          slot='0x03' function='0x0'/>
    </interface>

It is also possible to pass an optional profileid. To do that
use following syntax:

   <interface type='bridge'>
     <source bridge='ovsbr'/>
     <mac address='00:55:1a:65:a2:8d'/>
     <virtualport type='openvswitch'>
       <parameters interfaceid='921a80cd-e6de-5a2e-db9c-ab27f15a6e1d'
                   profileid='test-profile'/>
     </virtualport>
   </interface>

To create Open vSwitch bridge install Open vSwitch and
run the following command:

    ovs-vsctl add-br ovsbr
2012-02-15 16:04:54 -05:00
..
libvirtd_lxc.aug Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_conf.c Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_conf.h Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_container.c Populate /dev/std{in,out,err} symlinks in LXC containers 2012-02-08 19:50:15 +00:00
lxc_container.h Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_controller.c Fixed connection definition for non-SELinux builds 2012-02-03 16:13:45 +01:00
lxc_driver.c network: support Open vSwitch 2012-02-15 16:04:54 -05:00
lxc_driver.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
lxc.conf Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
test_libvirtd_lxc.aug Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00