diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-07 16:39:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 16:39:46 +0200 |
commit | ca15e16f3f1b5174dc7ee2efa531aa974d3e97db (patch) | |
tree | c6d00cc20a69197428207ceba22eaff1ce3346ad /python/vyos | |
parent | 157e5c44f14f6b9c0da0e5fe7636ff3d28785886 (diff) | |
parent | 8296cc727066e739c178918a91cfc11d20d26fe1 (diff) | |
download | vyos-1x-ca15e16f3f1b5174dc7ee2efa531aa974d3e97db.tar.gz vyos-1x-ca15e16f3f1b5174dc7ee2efa531aa974d3e97db.zip |
Merge pull request #3265 from c-po/ethernet-mtu-T5862
ethernet: T5862: default MTU is not acceptable in some environments
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configverify.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 18642877a..4cb84194a 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -60,8 +60,8 @@ def verify_mtu_parent(config, parent): mtu = int(config['mtu']) parent_mtu = int(parent['mtu']) if mtu > parent_mtu: - raise ConfigError(f'Interface MTU ({mtu}) too high, ' \ - f'parent interface MTU is {parent_mtu}!') + raise ConfigError(f'Interface MTU "{mtu}" too high, ' \ + f'parent interface MTU is "{parent_mtu}"!') def verify_mtu_ipv6(config): """ @@ -76,7 +76,7 @@ def verify_mtu_ipv6(config): if int(config['mtu']) < min_mtu: interface = config['ifname'] error_msg = f'IPv6 address will be configured on interface "{interface}",\n' \ - f'the required minimum MTU is {min_mtu}!' + f'the required minimum MTU is "{min_mtu}"!' if 'address' in config: for address in config['address']: |