Commit fcab4fec by Stéphane Graber Committed by GitHub

Merge pull request #1487 from t-fohrer/t-fohrer-patch-3

Keep veth.pair.name on network shutdown
parents 69d47ee1 ea80ca74
...@@ -3026,8 +3026,6 @@ bool lxc_delete_network(struct lxc_handler *handler) ...@@ -3026,8 +3026,6 @@ bool lxc_delete_network(struct lxc_handler *handler)
WARN("Failed to remove interface \"%s\" from host: %s.", hostveth, strerror(-ret)); WARN("Failed to remove interface \"%s\" from host: %s.", hostveth, strerror(-ret));
} else { } else {
INFO("Removed interface \"%s\" from host.", hostveth); INFO("Removed interface \"%s\" from host.", hostveth);
free(netdev->priv.veth_attr.pair);
netdev->priv.veth_attr.pair = NULL;
} }
} else if (strlen(netdev->priv.veth_attr.veth1) > 0) { } else if (strlen(netdev->priv.veth_attr.veth1) > 0) {
hostveth = netdev->priv.veth_attr.veth1; hostveth = netdev->priv.veth_attr.veth1;
......
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