mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 10:18:02 +00:00
network: record created_name for instantiate_vlan()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
d4d684109c
commit
83530dba89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user