]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
Make lxc-user-nic use mkifname
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Dec 2013 19:29:37 +0000 (14:29 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Dec 2013 19:56:25 +0000 (14:56 -0500)
commita0265685269fa24387a8871151db84199028c715
treec4905c3877ba799e263f3ce60ff55de4d4125eaa
parent00194067f14f6bba6baeb030662bf7d488904acd
Make lxc-user-nic use mkifname

NetworkManager at least expects all veth devices to be called veth*
otherwise it'll consider them as physical interface and try to do DHCP
on them.

This change makes lxc-user-nic use the same function that we use for LXC
itself which will give us standard vethXXXXX kind of interfaces.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c
src/lxc/lxc_user_nic.c
src/lxc/network.c
src/lxc/network.h