Skip to content

Commit

Permalink
Do not write the MTU if it is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Apr 22, 2021
1 parent 0a58e63 commit 3f17299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2network/wicked/connection_config_writers/base.rb
Expand Up @@ -51,7 +51,7 @@ def write(conn)
file.ifplugd_priority = conn.startmode.priority if conn.startmode.to_s == "ifplugd"
file.ethtool_options = value_as_string(conn.ethtool_options)
file.zone = value_as_string(conn.firewall_zone)
file.mtu = conn.mtu
file.mtu = conn.mtu unless conn.mtu.to_i.zero?
add_ips(conn)

update_file(conn)
Expand Down

0 comments on commit 3f17299

Please sign in to comment.