On Tue, 18 Jun 2019 16:49:32 +0200 Matteo Croce <mcr...@redhat.com> wrote:
> Refactor the netns and ipvrf code so less steps are needed to exec commands > in a netns or a VRF context. > Also remove some code which became dead. bloat-o-meter shows a tiny saving. > > Matteo Croce (3): > netns: switch netns in the child when executing commands > ip vrf: use hook to change VRF in the child > netns: make netns_{save,restore} static > > include/namespace.h | 2 -- > include/utils.h | 6 ++--- > ip/ip.c | 1 - > ip/ipnetns.c | 61 ++++++++++++++++++++++++++++++++++----------- > ip/ipvrf.c | 12 ++++++--- > lib/exec.c | 7 +++++- > lib/namespace.c | 31 ----------------------- > lib/utils.c | 27 -------------------- > 8 files changed, 63 insertions(+), 84 deletions(-) > Ok, applied.