]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/network.c
network: record created_name for instantiate_vlan()
[mirror_lxc.git] / 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);