]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
allow lxc.network.pair to specify host-side name for veth interface
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 26 Nov 2009 15:46:23 +0000 (16:46 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 26 Nov 2009 15:46:23 +0000 (16:46 +0100)
commit8634bc197f742267b2eabd8543265ba93177b529
tree435c901438753ebef9bbeac7f88fa3c0015bca91
parentf63147349be9cac87f8f9abe08edacfe36f2c617
allow lxc.network.pair to specify host-side name for veth interface

Currently we allocate veth device with random name on host side,
so that things like firewall rules or accounting does not work
at all.  Fix this by recognizing yet anothe keyword to specify
the host-side device name: lxc.network.pair, and use it instead
of random name if specified.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c