From fe106462f0daa6ec9536887cf3732a9d8e056a60 Mon Sep 17 00:00:00 2001 From: Daniel Niasoff <4070285+dniasoff@users.noreply.github.com> Date: Mon, 1 Jan 2024 17:27:58 +0000 Subject: fix to handle OpenStack where mtu exists but is null --- cloudinit/config/cc_vyos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit') 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: -- cgit v1.2.3