]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
Fix instantiation of multiple vlan interfaces with same id
authorAxel Neumann <neumann@cgws.de>
Tue, 13 Jan 2015 09:48:52 +0000 (10:48 +0100)
committerAxel Neumann <neumann@cgws.de>
Tue, 13 Jan 2015 09:48:52 +0000 (10:48 +0100)
commit82f58d0396ecb3ffaecbc957a917a87f4e29a938
tree81ca7c8e63b7577c02aee272db5dfe092780370c
parentdb2930e17441d39caaa61b52ecf4116504107a26
Fix instantiation of multiple vlan interfaces with same id

Container fail to start with configs (as shown below) where the same
vlan id is used for several type=vlan container interfaces.
Then, during the instantiation of the vlan interfaces, an error occurs
because the lxc code tries to assign the same temporary name to both
of them before it is bound into the container.

> lxc.network.type      = vlan
> lxc.network.flags     = up
> lxc.network.link      = eth1
> lxc.network.vlan.id   = 3842
> lxc.network.name      = iso0
>
> lxc.network.type      = vlan
> lxc.network.flags     = up
> lxc.network.link      = eth2
> lxc.network.vlan.id   = 3842
> lxc.network.name      = iso1

Signed-off-by: Axel Neumann <neumann@cgws.de>
src/lxc/conf.c