Skip to content

Commit fc66fc1

Browse files
committed
pkg/namespaces/namespaces.go: Remove slirp
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
1 parent 42835ad commit fc66fc1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pkg/namespaces/namespaces.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const (
1616
podType = "pod"
1717
privateType = "private"
1818
shareableType = "shareable"
19-
slirpType = "slirp4netns"
2019
pastaType = "pasta"
2120
)
2221

@@ -202,11 +201,6 @@ func (n NetworkMode) IsBridge() bool {
202201
return n == bridgeType
203202
}
204203

205-
// IsSlirp4netns indicates if we are running a rootless network stack
206-
func (n NetworkMode) IsSlirp4netns() bool {
207-
return n == slirpType || strings.HasPrefix(string(n), slirpType+":")
208-
}
209-
210204
// IsPasta indicates if we are running a rootless network stack using pasta
211205
func (n NetworkMode) IsPasta() bool {
212206
return n == pastaType || strings.HasPrefix(string(n), pastaType+":")
@@ -230,5 +224,5 @@ func (n NetworkMode) IsPod() bool {
230224

231225
// IsUserDefined indicates user-created network
232226
func (n NetworkMode) IsUserDefined() bool {
233-
return !n.IsDefault() && !n.IsBridge() && !n.IsHost() && !n.IsNone() && !n.IsContainer() && !n.IsSlirp4netns() && !n.IsPasta() && !n.IsNS()
227+
return !n.IsDefault() && !n.IsBridge() && !n.IsHost() && !n.IsNone() && !n.IsContainer() && !n.IsPasta() && !n.IsNS()
234228
}

0 commit comments

Comments
 (0)