nspawn: explicitly remove veth links we created after use

Sometimes the kernel keeps veth links pinned after the namespace they have been
joined to died. Let's hence explicitly remove veth links after use.

Fixes: #2173
This commit is contained in:
Lennart Poettering
2016-04-25 13:44:24 +02:00
parent fa647aa978
commit ef3b2aa7a1
3 changed files with 51 additions and 0 deletions
+2
View File
@@ -34,3 +34,5 @@ int setup_ipvlan(const char *machine_name, pid_t pid, char **ifaces);
int move_network_interfaces(pid_t pid, char **ifaces);
int veth_extra_parse(char ***l, const char *p);
int remove_veth_links(const char *primary, char **pairs);