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

Version
-
Is it a breaking change?
Stricter validation
Issue type
Internal change (not visible to end users)

Event Timeline

c-po claimed 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 edited a custom field.
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).Aug 29 2021, 12:57 PM
erkin removed a subscriber: Global Notifications.