Commit 6e35af2e by Daniel Lezcano Committed by Daniel Lezcano

set veth host's side always up

We should always have the veth host's side up, otherwise if we omit the up flag in the configurationn, letting the container to configure its interface, the network will be never enabled as the host's side is not up. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 91656ce5
......@@ -1406,13 +1406,10 @@ static int instanciate_veth(struct lxc_handler *handler, struct lxc_netdev *netd
goto out_delete;
}
if (netdev->flags & IFF_UP) {
err = lxc_device_up(veth1);
if (err) {
ERROR("failed to set %s up : %s", veth1,
strerror(-err));
goto out_delete;
}
err = lxc_device_up(veth1);
if (err) {
ERROR("failed to set %s up : %s", veth1, strerror(-err));
goto out_delete;
}
if (netdev->upscript) {
......
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