Decrease MTU to account for IPv6 header

(MTU - 50) only supports VxLAN over IPv4, decrease it
to support IPv6 as well, which is 20 bytes larger.

Change-Id: I8a9efa119afd43d1883b65a2c5c6eac8de8a7841
This commit is contained in:
Brian Haley 2020-11-06 17:35:01 -05:00
parent 31324e72d1
commit ef61a7e2da
1 changed files with 3 additions and 2 deletions

View File

@ -9,12 +9,13 @@
{% endfor -%}
{{- mtus|min -}}
- name: Calculate external_bridge_mtu
# 50 bytes is overhead for vxlan (which is greater than GRE
# 30 bytes is overhead for vxlan (which is greater than GRE
# allowing us to use either overlay option with this MTU.
# 40 bytes is overhead for IPv6, which will also support an IPv4 overlay.
# TODO(andreaf) This should work, but it may have to be reconcilied with
# the MTU setting used by the multinode setup roles in multinode pre.yaml
set_fact:
external_bridge_mtu: "{{ local_mtu | int - 50 }}"
external_bridge_mtu: "{{ local_mtu | int - 30 - 40 }}"
roles:
- configure-swap
- setup-stack-user