diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2020-11-23 22:04:06 +0100 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2020-12-01 22:33:03 +0100 |
commit | b1b35707aae57d299933f029eb0adc0a9000f97f (patch) | |
tree | 52c70c05c8cd7374d344d289a35323a8587cce88 /libpod/network/netconflist.go | |
parent | c71ad9a557ee80eccde2608939c81906379fa7ae (diff) | |
download | podman-b1b35707aae57d299933f029eb0adc0a9000f97f.tar.gz podman-b1b35707aae57d299933f029eb0adc0a9000f97f.tar.bz2 podman-b1b35707aae57d299933f029eb0adc0a9000f97f.zip |
Add podman network create option for bridge mtu
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'libpod/network/netconflist.go')
-rw-r--r-- | libpod/network/netconflist.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/network/netconflist.go b/libpod/network/netconflist.go index 3db38485b..8cbad39cb 100644 --- a/libpod/network/netconflist.go +++ b/libpod/network/netconflist.go @@ -41,11 +41,12 @@ func NewNcList(name, version string, labels NcLabels) NcList { } // NewHostLocalBridge creates a new LocalBridge for host-local -func NewHostLocalBridge(name string, isGateWay, isDefaultGW, ipMasq bool, ipamConf IPAMHostLocalConf) *HostLocalBridge { +func NewHostLocalBridge(name string, isGateWay, isDefaultGW, ipMasq bool, mtu int, ipamConf IPAMHostLocalConf) *HostLocalBridge { hostLocalBridge := HostLocalBridge{ PluginType: "bridge", BrName: name, IPMasq: ipMasq, + MTU: mtu, HairpinMode: true, IPAM: ipamConf, } |