mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
Move the function internal to the daemon, where it's used. Deliberately not mentioning the new location, as this function should not be used externally. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
513 B
Go
14 lines
513 B
Go
package network
|
|
|
|
// DefaultNetwork is the name of the default network driver to use for containers
|
|
// on the daemon platform. The default for Linux containers is "bridge"
|
|
// ([network.NetworkBridge]), and "nat" ([network.NetworkNat]) for Windows
|
|
// containers.
|
|
const DefaultNetwork = defaultNetwork
|
|
|
|
// IsPredefined indicates if a network is predefined by the daemon.
|
|
func IsPredefined(network string) bool {
|
|
// TODO(thaJeztah): check if we can align the check for both platforms
|
|
return isPreDefined(network)
|
|
}
|