mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
19 lines
379 B
Go
19 lines
379 B
Go
|
package api
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/libnetwork/drivers/solaris/bridge"
|
||
|
"github.com/docker/libnetwork/netlabel"
|
||
|
)
|
||
|
|
||
|
func GetOpsMap(bridgeName, defaultMTU string) map[string]string {
|
||
|
if defaultMTU == "" {
|
||
|
return map[string]string{
|
||
|
bridge.BridgeName: bridgeName,
|
||
|
}
|
||
|
}
|
||
|
return map[string]string{
|
||
|
bridge.BridgeName: bridgeName,
|
||
|
netlabel.DriverMTU: defaultMTU,
|
||
|
}
|
||
|
}
|