summaryrefslogtreecommitdiff
path: root/libpod/network/netconflist.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-02 01:01:09 +0100
committerGitHub <noreply@github.com>2020-12-02 01:01:09 +0100
commitc585012db395e259b13157a685d7f9596c0b9f7d (patch)
tree260a3d2e2b20af7f91cad8443278f53288b0c42d /libpod/network/netconflist.go
parentb2cd6e0402bcd425130e397d79588dc406eccf53 (diff)
parentdb70e91bde90514ace510f66a1069207217a8d69 (diff)
downloadpodman-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.go4
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 {