Unverified Commit c62784df by Stéphane Graber Committed by GitHub

Merge pull request #2954 from tomponline/tp-vlan-hook

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