summaryrefslogtreecommitdiff
path: root/python/vyos/configverify.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-07 19:37:22 +0200
committerGitHub <noreply@github.com>2024-04-07 19:37:22 +0200
commit96f7fb69fb6ba34f15e35b4cddbb108eebda6199 (patch)
tree1046cc126729244a7c74472454318c164516a89b /python/vyos/configverify.py
parentb286552f1d0f1bfa23eea29ab92426db27efc425 (diff)
parentfbaa707f72ac1a0214ca57c8768fefa4b818738b (diff)
downloadvyos-1x-96f7fb69fb6ba34f15e35b4cddbb108eebda6199.tar.gz
vyos-1x-96f7fb69fb6ba34f15e35b4cddbb108eebda6199.zip
Merge pull request #3276 from vyos/mergify/bp/sagitta/pr-3265
ethernet: T5862: default MTU is not acceptable in some environments (backport #3265)
Diffstat (limited to 'python/vyos/configverify.py')
-rw-r--r--python/vyos/configverify.py6
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']: