summaryrefslogtreecommitdiff
path: root/libpod/network/cni/config.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-09-16 14:51:51 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-09-16 15:37:34 +0200
commitaee0ab98cd3e3b552ac6eb0e7534a9f548b3109f (patch)
treebbc5d8969a4c612d17d60c7b4128773af5b63328 /libpod/network/cni/config.go
parentc20f61148cfc7c51f72bf266e154d1903db68c6a (diff)
downloadpodman-aee0ab98cd3e3b552ac6eb0e7534a9f548b3109f.tar.gz
podman-aee0ab98cd3e3b552ac6eb0e7534a9f548b3109f.tar.bz2
podman-aee0ab98cd3e3b552ac6eb0e7534a9f548b3109f.zip
CNI: add ipvlan driver
Add support for the ipvlan cni plugin. This allows us to create, inspect and list ipvlan networks correctly. Fixes #10478 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/network/cni/config.go')
-rw-r--r--libpod/network/cni/config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/network/cni/config.go b/libpod/network/cni/config.go
index d31cd3002..2a6ad8eb3 100644
--- a/libpod/network/cni/config.go
+++ b/libpod/network/cni/config.go
@@ -100,8 +100,8 @@ func (n *cniNetwork) networkCreate(newNetwork types.Network, defaultNet bool) (*
if err != nil {
return nil, err
}
- case types.MacVLANNetworkDriver:
- err = createMacVLAN(&newNetwork)
+ case types.MacVLANNetworkDriver, types.IPVLANNetworkDriver:
+ err = createIPMACVLAN(&newNetwork)
if err != nil {
return nil, err
}
@@ -214,7 +214,7 @@ func (n *cniNetwork) NetworkInspect(nameOrID string) (types.Network, error) {
return *network.libpodNet, nil
}
-func createMacVLAN(network *types.Network) error {
+func createIPMACVLAN(network *types.Network) error {
if network.Internal {
return errors.New("internal is not supported with macvlan")
}