diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-25 20:58:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-25 20:59:43 +0200 |
commit | 3abeef7e4bf6b59b8e58b31600b536a5a07d981e (patch) | |
tree | dea0522b7c0fd3b6e3668156e8b75c0431972b24 /src/conf_mode | |
parent | 9b268012252a4fe6f253177830abde950e2773b5 (diff) | |
download | vyos-1x-3abeef7e4bf6b59b8e58b31600b536a5a07d981e.tar.gz vyos-1x-3abeef7e4bf6b59b8e58b31600b536a5a07d981e.zip |
ethernet: T2912: verify() that hardware supports specified MTU value
Check the hardware if MTU value is supported at all.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-ethernet.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py index a8df64cce..5468c7bda 100755 --- a/src/conf_mode/interfaces-ethernet.py +++ b/src/conf_mode/interfaces-ethernet.py @@ -20,11 +20,12 @@ from sys import exit from vyos.config import Config from vyos.configdict import get_interface_dict -from vyos.configverify import verify_interface_exists -from vyos.configverify import verify_dhcpv6 from vyos.configverify import verify_address -from vyos.configverify import verify_vrf +from vyos.configverify import verify_dhcpv6 +from vyos.configverify import verify_interface_exists +from vyos.configverify import verify_mtu from vyos.configverify import verify_vlan_config +from vyos.configverify import verify_vrf from vyos.ifconfig import EthernetIf from vyos import ConfigError from vyos import airbag @@ -57,6 +58,7 @@ def verify(ethernet): if ethernet.get('speed', None) != 'auto': raise ConfigError('If duplex is hardcoded, speed must be hardcoded, too') + verify_mtu(ethernet) verify_dhcpv6(ethernet) verify_address(ethernet) verify_vrf(ethernet) |