Adjust MTU on br-ctlplane and make adjustment survive a reboot

For vxlan-networking, this review adds the change to ifcfg-* file
and adds the MTU adjustment for br-ctlplane.

Change-Id: I15d9306b7c7dac22abbaa61da4bded200cf5bf2e
This commit is contained in:
Ronelle Landy 2017-07-12 12:43:18 -04:00
parent 787da9abf8
commit c9f96856fb
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,8 @@
shell: >
set -o pipefail &&
sudo ip link set dev {{ undercloud_local_interface }} mtu {{ vxlan_mtu }} 2>&1 {{ timestamper_cmd }} >>
{{ working_dir }}/vxlan_networking.sh.log
{{ working_dir }}/vxlan_networking.sh.log;
echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-{{ undercloud_local_interface }}
delegate_to: "{{ item }}"
with_items: "{{ groups['overcloud'] | default([]) }}"

View File

@ -94,9 +94,12 @@ set -u
echo "Setting {{ undercloud_local_interface }} up on $primary_node"
sudo ip link set dev {{ undercloud_local_interface }} up
sudo ip link set dev {{ undercloud_local_interface }} mtu {{ vxlan_mtu }}
echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-{{ undercloud_local_interface }}
if [ -f /etc/sysconfig/network-scripts/ifcfg-br-ctlplane ]; then
sudo ifup br-ctlplane
sudo ip link set dev br-ctlplane mtu {{ vxlan_mtu }}
echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-br-ctlplane
fi
## * Restart neutron-openvswitch-agent if it's enabled, since it may have