]> git.ipfire.org Git - thirdparty/lxc.git/commit
container: introduce two functions named as {at/de}tach_interface().
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 10 Oct 2014 02:57:13 +0000 (10:57 +0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 15 Oct 2014 10:17:19 +0000 (12:17 +0200)
commite58fae8f29b171bb0fd164c2f566b2475a2b6928
treefec944f0cc6ab19fd2b5a6a514242e4773505fae
parent51d0854cd6360b953c37e3bf1b9a85ce031b2075
container: introduce two functions named as {at/de}tach_interface().

Currently, we depends on ip command to attach interface to container.
It means we only implemented it by python.

This patch implement adding and removing interface by c and added
them in struct container.

Changelog: 10/15/2014 (serge): return error if ifname is NULL.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c