diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-09-13 14:07:05 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-09-15 20:00:28 +0200 |
commit | 5e8309464aea005fbc1604c304a94760aff4ee9a (patch) | |
tree | cba4282b3706c51107f37c7d0dec5f26df32286e /libpod/info.go | |
parent | 1bcd006c5fffe41a36cc6fdc17623a90693f3cab (diff) | |
download | podman-5e8309464aea005fbc1604c304a94760aff4ee9a.tar.gz podman-5e8309464aea005fbc1604c304a94760aff4ee9a.tar.bz2 podman-5e8309464aea005fbc1604c304a94760aff4ee9a.zip |
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 <pholzing@redhat.com>
Diffstat (limited to 'libpod/info.go')
-rw-r--r-- | libpod/info.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libpod/info.go b/libpod/info.go index 122a6b587..fb28c97dd 100644 --- a/libpod/info.go +++ b/libpod/info.go @@ -18,7 +18,6 @@ import ( "github.com/containers/image/v5/pkg/sysregistriesv2" "github.com/containers/podman/v3/libpod/define" "github.com/containers/podman/v3/libpod/linkmode" - "github.com/containers/podman/v3/libpod/network/types" "github.com/containers/podman/v3/pkg/cgroups" "github.com/containers/podman/v3/pkg/rootless" "github.com/containers/storage" @@ -73,8 +72,7 @@ func (r *Runtime) info() (*define.Info, error) { volumePlugins = append(volumePlugins, plugin) } info.Plugins.Volume = volumePlugins - // TODO move this into the new network interface - info.Plugins.Network = []string{types.BridgeNetworkDriver, types.MacVLANNetworkDriver} + info.Plugins.Network = r.network.Drivers() info.Plugins.Log = logDrivers info.Registries = registries |