Page MenuHomeVyOS Platform

When setting MTU check for hardware maximum supported MTU size
Closed, ResolvedPublicFEATURE REQUEST

Description

iproute spports reporting the min and max MTU of an Interface via: ip -d link list.

Add a wrapper to vyos.ifconfig.Interface and add checks to verify()

>>> from vyos.ifconfig import Interface
>>> tmp=Interface('eth0')
>>> tmp.get_min_mtu()
60
>>> tmp.get_max_mtu()
9000

This makes sense for ethernet interfaces only as all other interfaces are "virtual" and thus will be the same on all installed systems.

Details

Difficulty level
Normal (likely a few hours)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Stricter validation
Issue type
Internal change (not visible to end users)

Related Objects

Event Timeline

c-po created this task.
cpo@LR1.wue3# commit
[ interfaces ethernet eth1 ]
Interface MTU too high, maximum supported MTU is 9000!
cpo@LR1.wue3# commit
[ interfaces ethernet eth1 ]
Interface MTU too low, minimum supported MTU is 60!

Tested on ESXi

c-po reopened this task as In progress.
c-po triaged this task as Low priority.
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Stricter validation.
c-po updated the task description. (Show Details)
erkin set Issue type to Internal change (not visible to end users).Sun, Aug 29, 12:57 PM
erkin removed a subscriber: Active contributors.