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:
commit
4617b66c90
1 changed files with 7 additions and 0 deletions
|
@ -407,6 +407,13 @@ func (daemon *Daemon) GetNetworkDriverList() []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginList := daemon.netController.BuiltinDrivers()
|
pluginList := daemon.netController.BuiltinDrivers()
|
||||||
|
|
||||||
|
managedPlugins := daemon.PluginStore.GetAllManagedPluginsByCap(driverapi.NetworkPluginEndpointType)
|
||||||
|
|
||||||
|
for _, plugin := range managedPlugins {
|
||||||
|
pluginList = append(pluginList, plugin.Name())
|
||||||
|
}
|
||||||
|
|
||||||
pluginMap := make(map[string]bool)
|
pluginMap := make(map[string]bool)
|
||||||
for _, plugin := range pluginList {
|
for _, plugin := range pluginList {
|
||||||
pluginMap[plugin] = true
|
pluginMap[plugin] = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue