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

index df8422d3730f23faecc1f8f90e8f02732e561896..904d23f588bc579331880b25000626bd70ca7c87 100644 (file)
@@ -518,6 +518,8 @@ static int instantiate_ipvlan(struct lxc_handler *handler, struct lxc_netdev *ne
                goto on_error;
        }
 
+       strlcpy(netdev->created_name, peer, IFNAMSIZ);
+
        netdev->ifindex = if_nametoindex(peer);
        if (!netdev->ifindex) {
                ERROR("Failed to retrieve ifindex for \"%s\"", peer);