Merge pull request #29878 from mavenugo/npfilter2
Cherry-pick #29877 : Use GetAllByCap to get list of network plugins in docker info
This commit is contained in:
commit
7f20c11c47
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue