network: fix moving network devices with custom name

Closes #1271. Closes #3131. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3473ca76
...@@ -3359,7 +3359,7 @@ int lxc_network_move_created_netdev_priv(struct lxc_handler *handler) ...@@ -3359,7 +3359,7 @@ int lxc_network_move_created_netdev_priv(struct lxc_handler *handler)
physname = is_wlan(netdev->link); physname = is_wlan(netdev->link);
if (physname) if (physname)
ret = lxc_netdev_move_wlan(physname, netdev->link, pid, NULL); ret = lxc_netdev_move_wlan(physname, netdev->link, pid, netdev->name);
else else
ret = lxc_netdev_move_by_index(netdev->ifindex, pid, netdev->name); ret = lxc_netdev_move_by_index(netdev->ifindex, pid, netdev->name);
if (ret) { if (ret) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment