Skip to content

Commit b4872d4

Browse files
committed
Update ip.py
1 parent 0a33398 commit b4872d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lisa/tools/ip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ def is_valid_mtu(self, value: Optional[int] = None) -> bool:
220220
return False
221221
try:
222222
mtu = int(value)
223+
# typical MTU values are between 576 and 9000
224+
# 576 is the minimum possible MTU for IPv4 and 1280 for IPv6
225+
# 9000 is a common value for jumbo frames on Ethernet networks
223226
return 576 <= mtu <= 9000
224227
except ValueError:
225228
raise LisaException("MTU value is not an integer")

0 commit comments

Comments
 (0)