diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-01 23:22:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 23:22:33 +0100 |
commit | 3e026561f4787d2b6e634b8d170dc3fade85a96f (patch) | |
tree | 20ec129457dd37adff22cc307a7f186d31d3b17b | |
parent | 20308464317d172e8c4c5afff055c5c34edc6015 (diff) | |
parent | fe106462f0daa6ec9536887cf3732a9d8e056a60 (diff) | |
download | vyos-cloud-init-3e026561f4787d2b6e634b8d170dc3fade85a96f.tar.gz vyos-cloud-init-3e026561f4787d2b6e634b8d170dc3fade85a96f.zip |
Merge pull request #70 from dniasoff/fix/null-mtu-on-openstack
fix to handle OpenStack where mtu exists but is null
-rw-r--r-- | cloudinit/config/cc_vyos.py | 2 |
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: |