Skip to content

Commit

Permalink
Merge pull request #3006 from tomponline/tp-phys-downhook
Browse files Browse the repository at this point in the history
network: Fixes bug that stopped down hook from running for phys netdevs
  • Loading branch information
Christian Brauner committed May 16, 2019
2 parents e2f2d86 + b3259dc commit 6ae34d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lxc/network.c
Expand Up @@ -2787,6 +2787,8 @@ bool lxc_delete_network_unpriv(struct lxc_handler *handler)
TRACE("Renamed interface with index %d to its "
"initial name \"%s\"",
netdev->ifindex, netdev->link);

ret = netdev_deconf[netdev->type](handler, netdev);
goto clear_ifindices;
}

Expand Down Expand Up @@ -3224,6 +3226,8 @@ bool lxc_delete_network_priv(struct lxc_handler *handler)
netdev->link, netdev->priv.phys_attr.mtu);
}
}

ret = netdev_deconf[netdev->type](handler, netdev);
goto clear_ifindices;
}

Expand Down

0 comments on commit 6ae34d2

Please sign in to comment.