Commit ceb3af79 by Vitaly Lavrov Committed by Stéphane Graber

Set up MTU for vlan-type interfaces.

parent 3e4b0221
...@@ -2742,6 +2742,15 @@ static int instantiate_vlan(struct lxc_handler *handler, struct lxc_netdev *netd ...@@ -2742,6 +2742,15 @@ static int instantiate_vlan(struct lxc_handler *handler, struct lxc_netdev *netd
DEBUG("instantiated vlan '%s', ifindex is '%d'", " vlan1000", DEBUG("instantiated vlan '%s', ifindex is '%d'", " vlan1000",
netdev->ifindex); netdev->ifindex);
if (netdev->mtu) {
err = lxc_netdev_set_mtu(peer, atoi(netdev->mtu));
if (err) {
ERROR("failed to set mtu '%s' for %s : %s",
netdev->mtu, peer, strerror(-err));
lxc_netdev_delete_by_name(peer);
return -1;
}
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment