]> git.proxmox.com Git - mirror_lxc.git/commitdiff
network: record created_name for instantiate_vlan()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 3 Jul 2019 19:44:52 +0000 (21:44 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 3 Jul 2019 19:44:52 +0000 (21:44 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c

index fa9b7b3ba840665fdaa061d05805f638884282e7..75cc5ec4008e1b3536bd3181fa35730ee797647f 100644 (file)
@@ -592,6 +592,8 @@ static int instantiate_vlan(struct lxc_handler *handler, struct lxc_netdev *netd
                return -1;
        }
 
+       strlcpy(netdev->created_name, peer, IFNAMSIZ);
+
        netdev->ifindex = if_nametoindex(peer);
        if (!netdev->ifindex) {
                ERROR("Failed to retrieve ifindex for \"%s\"", peer);