mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6e4a572529
This commit brings in the first implementation of overlay driver which makes use of vxlan tunneling protocol to create logical networks across multiple hosts. This is very much alpha code and should be used for demo and testing purposes only. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
25 lines
563 B
Go
25 lines
563 B
Go
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/libnetwork/driverapi"
|
|
"github.com/docker/libnetwork/drivers/bridge"
|
|
"github.com/docker/libnetwork/drivers/host"
|
|
"github.com/docker/libnetwork/drivers/null"
|
|
o "github.com/docker/libnetwork/drivers/overlay"
|
|
"github.com/docker/libnetwork/drivers/remote"
|
|
)
|
|
|
|
func initDrivers(dc driverapi.DriverCallback) error {
|
|
for _, fn := range [](func(driverapi.DriverCallback) error){
|
|
bridge.Init,
|
|
host.Init,
|
|
null.Init,
|
|
remote.Init,
|
|
o.Init,
|
|
} {
|
|
if err := fn(dc); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|