From 5e8309464aea005fbc1604c304a94760aff4ee9a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 13 Sep 2021 14:07:05 +0200 Subject: Add Drivers method to the Network Interface Drivers should return the list of supported network drivers by this plugin. This is useful for podman info. Signed-off-by: Paul Holzinger --- libpod/network/cni/network.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod/network/cni') diff --git a/libpod/network/cni/network.go b/libpod/network/cni/network.go index 4e4ea7ee5..46e07f780 100644 --- a/libpod/network/cni/network.go +++ b/libpod/network/cni/network.go @@ -106,6 +106,12 @@ func NewCNINetworkInterface(conf InitConfig) (types.ContainerNetwork, error) { return n, nil } +// Drivers will return the list of supported network drivers +// for this interface. +func (n *cniNetwork) Drivers() []string { + return []string{types.BridgeNetworkDriver, types.MacVLANNetworkDriver} +} + func (n *cniNetwork) loadNetworks() error { // skip loading networks if they are already loaded if n.networks != nil { -- cgit v1.2.3-54-g00ecf