Commit 19abca58 by tomponline

network: Fixes vlan hook script

parent 41cd8a8d
......@@ -307,9 +307,10 @@ static int instantiate_vlan(struct lxc_handler *handler, struct lxc_netdev *netd
err = run_script_argv(handler->name,
handler->conf->hooks_version, "net",
netdev->upscript, "up", argv);
if (err < 0)
if (err < 0) {
lxc_netdev_delete_by_name(peer);
return -1;
}
}
DEBUG("Instantiated vlan \"%s\" with ifindex is \"%d\" (vlan1000)",
......
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