mirror of
https://github.com/moby/moby.git
synced 2026-08-12 22:16:46 +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>
13 lines
265 B
Go
13 lines
265 B
Go
package network
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/api/types/network"
|
|
)
|
|
|
|
const defaultNetwork = network.NetworkNat
|
|
|
|
func isPreDefined(network string) bool {
|
|
return !container.NetworkMode(network).IsUserDefined()
|
|
}
|