mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 00:02:11 +00:00
Improve veth error cases logging
The previous error message made it look like the host interface name was the concatenation of both the host and guest interface names. Closes #374 Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
4de03d375b
commit
2e2d6a7be9
@ -2822,7 +2822,7 @@ static int instantiate_veth(struct lxc_handler *handler, struct lxc_netdev *netd
|
||||
|
||||
err = lxc_veth_create(veth1, veth2);
|
||||
if (err) {
|
||||
ERROR("failed to create %s-%s : %s", veth1, veth2,
|
||||
ERROR("failed to create veth pair (%s and %s): %s", veth1, veth2,
|
||||
strerror(-err));
|
||||
goto out_delete;
|
||||
}
|
||||
@ -2842,7 +2842,7 @@ static int instantiate_veth(struct lxc_handler *handler, struct lxc_netdev *netd
|
||||
if (!err)
|
||||
err = lxc_netdev_set_mtu(veth2, atoi(netdev->mtu));
|
||||
if (err) {
|
||||
ERROR("failed to set mtu '%s' for %s-%s : %s",
|
||||
ERROR("failed to set mtu '%s' for veth pair (%s and %s): %s",
|
||||
netdev->mtu, veth1, veth2, strerror(-err));
|
||||
goto out_delete;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user