mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add support for Internal and Private network types on windows
Signed-off-by: Sandeep Bansal <sabansal@microsoft.com>
This commit is contained in:
parent
9db90d27ed
commit
012fcea177
2 changed files with 6 additions and 1 deletions
|
@ -109,7 +109,10 @@ const (
|
|||
|
||||
// IsBuiltinLocalDriver validates if network-type is a builtin local-scoped driver
|
||||
func IsBuiltinLocalDriver(networkType string) bool {
|
||||
if "l2bridge" == networkType || "l2tunnel" == networkType || "nat" == networkType || "ics" == networkType || "transparent" == networkType {
|
||||
if "l2bridge" == networkType || "l2tunnel" == networkType ||
|
||||
"nat" == networkType || "ics" == networkType ||
|
||||
"transparent" == networkType || "internal" == networkType ||
|
||||
"private" == networkType {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@ func getInitializers(experimental bool) []initializer {
|
|||
{windows.GetInit("l2bridge"), "l2bridge"},
|
||||
{windows.GetInit("l2tunnel"), "l2tunnel"},
|
||||
{windows.GetInit("nat"), "nat"},
|
||||
{windows.GetInit("internal"), "internal"},
|
||||
{windows.GetInit("private"), "private"},
|
||||
{windows.GetInit("ics"), "ics"},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue