diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-11 19:12:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 19:12:43 +0100 |
commit | 375ff223f430301edf25ef5a5f03a1ae1e029bef (patch) | |
tree | 96993f98fa27d39a93589a93179e7c914746b876 /libpod/options.go | |
parent | d5b411c484f9e45c71ad3552b796bd3343ec7a0c (diff) | |
parent | 3af19917a1666fc3f29d98f7f0b937eb488f706c (diff) | |
download | podman-375ff223f430301edf25ef5a5f03a1ae1e029bef.tar.gz podman-375ff223f430301edf25ef5a5f03a1ae1e029bef.tar.bz2 podman-375ff223f430301edf25ef5a5f03a1ae1e029bef.zip |
Merge pull request #12131 from Luap99/netavark-interface
Netavark interface
Diffstat (limited to 'libpod/options.go')
-rw-r--r-- | libpod/options.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go index 250b16556..0cc4c784c 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -227,6 +227,19 @@ func WithNetworkCmdPath(path string) RuntimeOption { } } +// WithNetworkBackend specifies the name of the network backend. +func WithNetworkBackend(name string) RuntimeOption { + return func(rt *Runtime) error { + if rt.valid { + return define.ErrRuntimeFinalized + } + + rt.config.Network.NetworkBackend = name + + return nil + } +} + // WithCgroupManager specifies the manager implementation name which is used to // handle cgroups for containers. // Current valid values are "cgroupfs" and "systemd". |