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
This commit is contained in:
Cédric Bosdonnat
2014-02-05 15:10:15 +01:00
committed by Daniel P. Berrange
parent d1520c5c9a
commit a09bbc024d
4 changed files with 70 additions and 7 deletions

View File

@@ -108,6 +108,7 @@ mymain(void)
DO_TEST("nonenetwork", false);
DO_TEST("physnetwork", false);
DO_TEST("macvlannetwork", false);
DO_TEST("vlannetwork", false);
DO_TEST("idmap", false);
DO_TEST("memtune", false);
DO_TEST("cputune", false);