]> git.ipfire.org Git - thirdparty/lxc.git/commit
network: allow lxc_network_move_by_index() rename netdev in moving.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Tue, 16 Sep 2014 04:58:55 +0000 (12:58 +0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 15 Oct 2014 09:54:44 +0000 (11:54 +0200)
commit8d357196c4bebe2e77bfa545336dc24bd7b9039d
tree4e3bbb761f213cadc772765ba1cf6b99bd748988
parent312f9c5dfe165b2831a5ef9d085994e75fb6e7ac
network: allow lxc_network_move_by_index() rename netdev in moving.

In netlink, we can set the dest_name of netdev when move netdev
between namespaces in one netlink request. And moving a netdev of
a src_name to a netdev with a dest_name is a common usecase.

So this patch add a parametaer to lxc_network_move_by_index() to
indicate the dest_name for the movement. NULL means same with
the src_name.

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