summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_vyos.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_vyos.py')
-rw-r--r--cloudinit/config/cc_vyos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_vyos.py b/cloudinit/config/cc_vyos.py
index 8f2e7f46..550811b7 100644
--- a/cloudinit/config/cc_vyos.py
+++ b/cloudinit/config/cc_vyos.py
@@ -466,7 +466,7 @@ def set_config_interfaces_v1(config, iface_config: dict):
config.set_tag(['interfaces', 'ethernet'])
# configre MTU
- if 'mtu' in iface_config:
+ if 'mtu' in iface_config and iface_config['mtu'] is not None:
set_ether_mtu(config, iface_name, iface_config['mtu'])
# We still need to set default MTU for Ethernet, for compatibility reasons
else: