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: Daniel Lezcano <dlezcano@fr.ibm.com>
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) {