File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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
211205func (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
232226func (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}
You can’t perform that action at this time.
0 commit comments