mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #8963 from blakery/master
Cleanup: made GetDefaultNetworkMtu private
This commit is contained in:
commit
dd62d256cb
3 changed files with 2 additions and 7 deletions
|
@ -70,7 +70,7 @@ func (config *Config) InstallFlags() {
|
|||
opts.MirrorListVar(&config.Mirrors, []string{"-registry-mirror"}, "Specify a preferred Docker registry mirror")
|
||||
}
|
||||
|
||||
func GetDefaultNetworkMtu() int {
|
||||
func getDefaultNetworkMtu() int {
|
||||
if iface, err := networkdriver.GetDefaultRouteIface(); err == nil {
|
||||
return iface.MTU
|
||||
}
|
||||
|
|
|
@ -721,8 +721,7 @@ func NewDaemon(config *Config, eng *engine.Engine) (*Daemon, error) {
|
|||
func NewDaemonFromDirectory(config *Config, eng *engine.Engine) (*Daemon, error) {
|
||||
// Apply configuration defaults
|
||||
if config.Mtu == 0 {
|
||||
// FIXME: GetDefaultNetwork Mtu doesn't need to be public anymore
|
||||
config.Mtu = GetDefaultNetworkMtu()
|
||||
config.Mtu = getDefaultNetworkMtu()
|
||||
}
|
||||
// Check for mutually incompatible config options
|
||||
if config.BridgeIface != "" && config.BridgeIP != "" {
|
||||
|
|
|
@ -37,10 +37,6 @@ type Fataler interface {
|
|||
func mkDaemon(f Fataler) *daemon.Daemon {
|
||||
eng := newTestEngine(f, false, "")
|
||||
return mkDaemonFromEngine(eng, f)
|
||||
// FIXME:
|
||||
// [...]
|
||||
// Mtu: docker.GetDefaultNetworkMtu(),
|
||||
// [...]
|
||||
}
|
||||
|
||||
func createNamedTestContainer(eng *engine.Engine, config *runconfig.Config, f Fataler, name string) (shortId string) {
|
||||
|
|
Loading…
Reference in a new issue