diff --git a/libnetwork/drivers_experimental_linux.go b/libnetwork/drivers_experimental_linux.go index 49f7b9bb36..ca7c9f9b0e 100644 --- a/libnetwork/drivers_experimental_linux.go +++ b/libnetwork/drivers_experimental_linux.go @@ -2,14 +2,10 @@ package libnetwork -import ( - "github.com/docker/libnetwork/drivers/ipvlan" - "github.com/docker/libnetwork/drivers/macvlan" -) +import "github.com/docker/libnetwork/drivers/ipvlan" func additionalDrivers() []initializer { return []initializer{ - {macvlan.Init, "macvlan"}, {ipvlan.Init, "ipvlan"}, } } diff --git a/libnetwork/drivers_linux.go b/libnetwork/drivers_linux.go index df8b4d734b..50416512f3 100644 --- a/libnetwork/drivers_linux.go +++ b/libnetwork/drivers_linux.go @@ -3,6 +3,7 @@ package libnetwork import ( "github.com/docker/libnetwork/drivers/bridge" "github.com/docker/libnetwork/drivers/host" + "github.com/docker/libnetwork/drivers/macvlan" "github.com/docker/libnetwork/drivers/null" "github.com/docker/libnetwork/drivers/overlay" "github.com/docker/libnetwork/drivers/remote" @@ -12,6 +13,7 @@ func getInitializers() []initializer { in := []initializer{ {bridge.Init, "bridge"}, {host.Init, "host"}, + {macvlan.Init, "macvlan"}, {null.Init, "null"}, {remote.Init, "remote"}, {overlay.Init, "overlay"},