diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-02 01:01:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 01:01:09 +0100 |
commit | c585012db395e259b13157a685d7f9596c0b9f7d (patch) | |
tree | 260a3d2e2b20af7f91cad8443278f53288b0c42d /libpod/network/netconflist.go | |
parent | b2cd6e0402bcd425130e397d79588dc406eccf53 (diff) | |
parent | db70e91bde90514ace510f66a1069207217a8d69 (diff) | |
download | podman-c585012db395e259b13157a685d7f9596c0b9f7d.tar.gz podman-c585012db395e259b13157a685d7f9596c0b9f7d.tar.bz2 podman-c585012db395e259b13157a685d7f9596c0b9f7d.zip |
Merge pull request #8457 from afbjorklund/bridge-mtu
Add podman network create flag for bridge mtu
Diffstat (limited to 'libpod/network/netconflist.go')
-rw-r--r-- | libpod/network/netconflist.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/network/netconflist.go b/libpod/network/netconflist.go index 3db38485b..a5fec5e80 100644 --- a/libpod/network/netconflist.go +++ b/libpod/network/netconflist.go @@ -41,12 +41,14 @@ 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, vlan int, ipamConf IPAMHostLocalConf) *HostLocalBridge { hostLocalBridge := HostLocalBridge{ PluginType: "bridge", BrName: name, IPMasq: ipMasq, + MTU: mtu, HairpinMode: true, + Vlan: vlan, IPAM: ipamConf, } if isGateWay { |