-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swarm to support node-local networks
- regardless of the network driver datascope Signed-off-by: Alessandro Boch <[email protected]>
- Loading branch information
Showing
6 changed files
with
299 additions
and
160 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
manager/allocator/networkallocator/drivers_network_linux.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package networkallocator | ||
|
||
import ( | ||
"github.com/docker/libnetwork/drivers/bridge/brmanager" | ||
"github.com/docker/libnetwork/drivers/ipvlan/ivmanager" | ||
"github.com/docker/libnetwork/drivers/macvlan/mvmanager" | ||
"github.com/docker/libnetwork/drivers/overlay/ovmanager" | ||
"github.com/docker/libnetwork/drivers/remote" | ||
) | ||
|
||
func getInitializers() []initializer { | ||
return []initializer{ | ||
{remote.Init, "remote"}, | ||
{ovmanager.Init, "overlay"}, | ||
{mvmanager.Init, "macvlan"}, | ||
{brmanager.Init, "bridge"}, | ||
{ivmanager.Init, "ipvlan"}, | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
...cator/networkallocator/drivers_network.go → ...tworkallocator/drivers_network_windows.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// +build linux windows | ||
|
||
package networkallocator | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters