1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #29877 from mavenugo/npfilter

Use GetAllByCap to get list of network plugins in docker info
This commit is contained in:
Tibor Vass 2017-01-04 14:57:20 -08:00 committed by GitHub
commit 4617b66c90

View file

@ -407,6 +407,13 @@ func (daemon *Daemon) GetNetworkDriverList() []string {
}
pluginList := daemon.netController.BuiltinDrivers()
managedPlugins := daemon.PluginStore.GetAllManagedPluginsByCap(driverapi.NetworkPluginEndpointType)
for _, plugin := range managedPlugins {
pluginList = append(pluginList, plugin.Name())
}
pluginMap := make(map[string]bool)
for _, plugin := range pluginList {
pluginMap[plugin] = true