aristanetworks / avd

Arista Validated Designs
https://avd.arista.com
Apache License 2.0
290 stars 209 forks source link

Certain platforms only support configuring IP MTU globally and not on individual interfaces. However, AVD sets the MTU to 9214 on MLAG SVIs by default. #3815

Closed Spandanaarista closed 6 months ago

Spandanaarista commented 6 months ago

Issue Summary

For platforms T3X4, T3X2, and T3X1, there is currently no support for setting the per-interface MTU. However, AVD automatically configures "mtu 9214" for MLAG SVIs by default, which may pose an issue for these platforms. Therefore, the MTU behavior should be adjusted according to the platform.

The current workaround proposed by @carlbuchmann involves applying the following configuration to the switch pair, resulting in the removal of the default MTU of 9214 on the MLAG SVI. custom_structured_configuration_vlan_interfaces:

Which component(s) of AVD impacted

eos_designs

How do you run AVD ?

None

Steps to reproduce

#eos cli                                                                                 
   interface Vlan4094
   description MLAG_PEER
   no shutdown
   mtu 9214
   no autostate
   ip address 192.168.0.0/31

Relevant log output

# structured_config                                                               
vlan_interfaces:
- name: Vlan4094
  description: MLAG_PEER
  shutdown: false
  ip_address: 192.168.0.0/31
  no_autostate: true
  mtu: 9214

Contributing Guide

kmueller68 commented 6 months ago

@Spandanaarista please have a look at the solution Claus already implemented on this issue.

https://github.com/aristanetworks/avd/pull/3128

I am using it successfully at customer.

Spandanaarista commented 6 months ago

Thank you, @kmueller68, for directing us to the existing solution. We overlooked it.