]> git.ipfire.org Git - thirdparty/lxc.git/commit
confile: support the network link string pattern matching 1343/head
authorfli <fupan.li@windriver.com>
Tue, 6 Dec 2016 08:59:52 +0000 (00:59 -0800)
committerfli <fupan.li@windriver.com>
Tue, 13 Dec 2016 02:11:13 +0000 (18:11 -0800)
commit576400e5e01b6634bbc8e8fa11beffa71cc4ef45
tree08326423f15fd67434ba0540ac34128b99db9bbe
parent27cc1441b0130a61684e331ace804fcd90343917
confile: support the network link string pattern matching

Enable lxc network config support the following type and link:

lxc.network.type = phys
lxc.network.link = eth+

Here, the suffix '+' will trigger a string pattern matching
and when lxc find any network interfaces name prefixed with
"eth" such as "eth0", "eth1", "ethxxxx" and so on, it will
try to move them into the container's namespace; If it didn't
find any matching, it would do nothing for this configure
line.

Signed-off-by: fli <fupan.li@windriver.com>
src/lxc/confile.c