Skip to content

Commit

Permalink
fix to handle OpenStack where mtu exists but is null
Browse files Browse the repository at this point in the history
  • Loading branch information
dniasoff committed Jan 1, 2024
1 parent 2030846 commit fe10646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudinit/config/cc_vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fe10646

Please sign in to comment.