diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-11-01 16:02:14 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-11-11 16:26:47 +0100 |
commit | 1c88f741a7a15a7c8ff666c080a325ef0056af02 (patch) | |
tree | d5870e19fc3ddd8ef3839d03dd8f3f28e8101b23 /libpod/network | |
parent | 3fe0c49174e2fba6695dcedff449ba73d15943c8 (diff) | |
download | podman-1c88f741a7a15a7c8ff666c080a325ef0056af02.tar.gz podman-1c88f741a7a15a7c8ff666c080a325ef0056af02.tar.bz2 podman-1c88f741a7a15a7c8ff666c080a325ef0056af02.zip |
select network backend based on config
You can change the network backendend in containers.conf supported
values are "cni" and "netavark".
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/network')
-rw-r--r-- | libpod/network/netavark/network.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/network/netavark/network.go b/libpod/network/netavark/network.go index cd6db4f58..cc6fb423c 100644 --- a/libpod/network/netavark/network.go +++ b/libpod/network/netavark/network.go @@ -110,6 +110,10 @@ func NewNetworkInterface(conf InitConfig) (types.ContainerNetwork, error) { ipamdbPath = filepath.Join(ipamdbPath, "ipam.db") } + if err := os.MkdirAll(conf.NetworkConfigDir, 0755); err != nil { + return nil, err + } + n := &netavarkNetwork{ networkConfigDir: conf.NetworkConfigDir, netavarkBinary: conf.NetavarkBinary, |