From 4d89a8a74e6e523760eab68d4eadec6fb7ba230b Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 29 Apr 2020 12:13:05 +0200 Subject: [PATCH] specgen: honor slirp4netns Signed-off-by: Giuseppe Scrivano --- pkg/specgen/namespaces.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/specgen/namespaces.go b/pkg/specgen/namespaces.go index f0161a7932..396563267a 100644 --- a/pkg/specgen/namespaces.go +++ b/pkg/specgen/namespaces.go @@ -216,6 +216,8 @@ func ParseNetworkNamespace(ns string) (Namespace, []string, error) { toReturn := Namespace{} var cniNetworks []string switch { + case ns == "slirp4netns": + toReturn.NSMode = Slirp case ns == "pod": toReturn.NSMode = FromPod case ns == "bridge":