Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- {% set mtu_ctlplane_list = [ctlplane_mtu] %}
- {% set mtu_dataplane_list = [] %}
- {% for network in role_networks %}
- {# This block resolves the minimum viable MTU for interfaces connected to #}
- {# the dataplane network(s), which start by "Tenant", and also bonds #}
- {# and bridges that carry multiple VLANs. Each VLAN may have different MTU. #}
- {# The bridge, bond or interface must have an MTU to allow the VLAN with the #}
- {# largest MTU. #}
- {% if network.startswith('Tenant') %}
- {{ mtu_dataplane_list.append(lookup('vars', role_networks_lower[network] ~ '_mtu')) }}
- {# This block resolves the minimum viable MTU for interfaces connected to #}
- {# the control plane network(s) (don't start by "Tenant"), and also bonds #}
- {# and bridges that carry multiple VLANs. Each VLAN may have different MTU. #}
- {# The bridge, bond or interface must have an MTU to allow the VLAN with the #}
- {# largest MTU. #}
- {% else %}
- {{ mtu_ctlplane_list.append(lookup('vars', role_networks_lower[network] ~ '_mtu')) }}
- {%- endif %}
- {%- endfor %}
- {% set min_viable_mtu_ctlplane = mtu_ctlplane_list | max %}
- {% set min_viable_mtu_dataplane = mtu_dataplane_list | max %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement