]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC from native: map vlan network type
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 5 Feb 2014 14:10:15 +0000 (15:10 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 12 Feb 2014 17:52:47 +0000 (17:52 +0000)
commita09bbc024dc32700afb308b97c5d39efd4493517
treec8519224935c90d25360f5e654a898456baf4e3e
parentd1520c5c9a279053affe136a30430b551b4d712b
LXC from native: map vlan network type

The problem with VLAN is that the user still has to manually create the
vlan interface on the host. Then the generated configuration will use
it as a nerwork hostdev device. So the generated configurations of the
following two fragments are equivalent (see rhbz#1059637).

lxc.network.type = phys
lxc.network.link = eth0.5

lxc.network.type = vlan
lxc.network.link = eth0
lxc.network.vlan.id = 5
src/lxc/lxc_native.c
tests/lxcconf2xmldata/lxcconf2xml-vlannetwork.config [new file with mode: 0644]
tests/lxcconf2xmldata/lxcconf2xml-vlannetwork.xml [new file with mode: 0644]
tests/lxcconf2xmltest.c