From e43304f3df4e71822f62ce8f73f7066ee27f6bdb Mon Sep 17 00:00:00 2001 From: Daniel Speichert Date: Tue, 17 Oct 2017 14:31:27 -0400 Subject: [PATCH] Stop trying to set MTU on LXC bridge interface This setting is invalid on the bridge and prevents it from coming up. The bridge uses the lowest MTU used by all of its connected ports automatically, so any MTU configured for LXC containers will be used by the bridge. Change-Id: I8ba8c43492493c4de46469903f0567b6ca7b509d Closes-Bug: 1724337 --- templates/lxc-net-bridge.cfg.j2 | 3 --- templates/lxc-net-redhat-bridge.cfg.j2 | 3 --- templates/lxc-net-suse-bridge.cfg.j2 | 3 --- 3 files changed, 9 deletions(-) diff --git a/templates/lxc-net-bridge.cfg.j2 b/templates/lxc-net-bridge.cfg.j2 index 5505833e..58c6fd9a 100644 --- a/templates/lxc-net-bridge.cfg.j2 +++ b/templates/lxc-net-bridge.cfg.j2 @@ -7,9 +7,6 @@ iface {{ lxc_net_bridge }} inet static {% if lxc_net_gateway is not none %} gateway {{ lxc_net_gateway }} {% endif %} -{% if lxc_net_mtu is defined %} - mtu {{ lxc_net_mtu }} -{% endif %} {% if lxc_net_nat | bool %} # dnsmasq start and stop {% if lxc_net_manage_iptables | bool %} diff --git a/templates/lxc-net-redhat-bridge.cfg.j2 b/templates/lxc-net-redhat-bridge.cfg.j2 index 8f6f374d..b15e854f 100644 --- a/templates/lxc-net-redhat-bridge.cfg.j2 +++ b/templates/lxc-net-redhat-bridge.cfg.j2 @@ -7,9 +7,6 @@ NETMASK={{ lxc_net_netmask }} {% if lxc_net_gateway is not none %} GATEWAY={{ lxc_net_gateway }} {% endif %} -{% if lxc_net_mtu is defined %} -MTU={{ lxc_net_mtu }} -{% endif %} ONBOOT=yes BOOTPROTO=none NM_CONTROLLED=no diff --git a/templates/lxc-net-suse-bridge.cfg.j2 b/templates/lxc-net-suse-bridge.cfg.j2 index 7a3b9da3..179779ee 100644 --- a/templates/lxc-net-suse-bridge.cfg.j2 +++ b/templates/lxc-net-suse-bridge.cfg.j2 @@ -3,9 +3,6 @@ BRIDGE='yes' IPADDR={{ lxc_net_address }} NETMASK={{ lxc_net_netmask }} -{% if lxc_net_mtu is defined %} -MTU={{ lxc_net_mtu }} -{% endif %} BOOTPROTO=static STARTMODE=auto BRIDGE_STP='off'