2015-05-07 00:09:12 +00:00
|
|
|
package libnetwork
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/docker/libnetwork/drivers/bridge"
|
|
|
|
"github.com/docker/libnetwork/drivers/host"
|
2016-06-14 20:45:24 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/macvlan"
|
2015-05-07 00:09:12 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/null"
|
2015-09-25 17:02:31 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/overlay"
|
2015-05-07 00:09:12 +00:00
|
|
|
"github.com/docker/libnetwork/drivers/remote"
|
|
|
|
)
|
|
|
|
|
2016-12-13 21:45:30 +00:00
|
|
|
func getInitializers(experimental bool) []initializer {
|
2016-03-11 12:40:33 +00:00
|
|
|
in := []initializer{
|
2015-09-25 17:02:31 +00:00
|
|
|
{bridge.Init, "bridge"},
|
|
|
|
{host.Init, "host"},
|
2016-06-14 20:45:24 +00:00
|
|
|
{macvlan.Init, "macvlan"},
|
2015-09-25 17:02:31 +00:00
|
|
|
{null.Init, "null"},
|
|
|
|
{remote.Init, "remote"},
|
|
|
|
{overlay.Init, "overlay"},
|
2015-05-07 00:09:12 +00:00
|
|
|
}
|
2016-03-11 12:40:33 +00:00
|
|
|
|
2016-12-13 21:45:30 +00:00
|
|
|
if experimental {
|
|
|
|
in = append(in, additionalDrivers()...)
|
|
|
|
}
|
2016-03-11 12:40:33 +00:00
|
|
|
return in
|
2015-05-07 00:09:12 +00:00
|
|
|
}
|