summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 10:26:11 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 10:26:11 +0200
commit38b3dff1ebdf8c26a28d0befa6dcf0b4f51f21be (patch)
tree91514a442655d6b5dc11ffad8a3a4bbff17f8cd2 /python
parent722b88d3d88c8c89cf7bd90b52c97460338b60fa (diff)
downloadvyos-1x-38b3dff1ebdf8c26a28d0befa6dcf0b4f51f21be.tar.gz
vyos-1x-38b3dff1ebdf8c26a28d0befa6dcf0b4f51f21be.zip
pseudo-ethernet: T3575: verify parent interface MTU
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configverify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index 41d80d6e7..88cbf2d5b 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -1,4 +1,4 @@
-# Copyright 2020 VyOS maintainers and contributors <maintainers@vyos.io>
+# Copyright 2020-2021 VyOS maintainers and contributors <maintainers@vyos.io>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -48,7 +48,7 @@ def verify_mtu(config):
def verify_mtu_parent(config, parent):
if 'mtu' not in config or 'mtu' not in parent:
return
-
+
mtu = int(config['mtu'])
parent_mtu = int(parent['mtu'])
if mtu > parent_mtu: