Commit 2c5bcd3a by Stéphane Graber

Merge pull request #649 from major/lxc-delete-network-test

Tear down network devices during container halt
parents a2b27d2f ce5782df
...@@ -1222,7 +1222,12 @@ int __lxc_start(const char *name, struct lxc_conf *conf, ...@@ -1222,7 +1222,12 @@ int __lxc_start(const char *name, struct lxc_conf *conf,
} }
} }
DEBUG("Pushing physical nics back to host namespace");
lxc_rename_phys_nics_on_shutdown(netnsfd, handler->conf); lxc_rename_phys_nics_on_shutdown(netnsfd, handler->conf);
DEBUG("Tearing down virtual network devices used by container");
lxc_delete_network(handler);
if (netnsfd >= 0) if (netnsfd >= 0)
close(netnsfd); close(netnsfd);
......
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