Skip to content

Commit f342167

Browse files
committed
libpod: Remove network-cmd-path
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
1 parent c8b09fc commit f342167

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

libpod/options.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,6 @@ func WithConmonPath(path string) RuntimeOption {
180180
}
181181
}
182182

183-
// WithNetworkCmdPath specifies the path to the slirp4netns binary which manages the
184-
// runtime.
185-
func WithNetworkCmdPath(path string) RuntimeOption {
186-
return func(rt *Runtime) error {
187-
if rt.valid {
188-
return define.ErrRuntimeFinalized
189-
}
190-
191-
rt.config.Engine.NetworkCmdPath = path
192-
193-
return nil
194-
}
195-
}
196-
197183
// WithNetworkBackend specifies the name of the network backend.
198184
func WithNetworkBackend(name string) RuntimeOption {
199185
return func(rt *Runtime) error {

pkg/domain/infra/runtime_libpod.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ func getRuntime(ctx context.Context, fs *flag.FlagSet, opts *engineOpts) (*libpo
164164
if fs.Changed("tmpdir") {
165165
options = append(options, libpod.WithTmpDir(cfg.ContainersConf.Engine.TmpDir))
166166
}
167-
if fs.Changed("network-cmd-path") {
168-
options = append(options, libpod.WithNetworkCmdPath(cfg.ContainersConf.Engine.NetworkCmdPath))
169-
}
170167
if fs.Changed("network-backend") {
171168
options = append(options, libpod.WithNetworkBackend(cfg.ContainersConf.Network.NetworkBackend))
172169
}

0 commit comments

Comments
 (0)