mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 04:30:31 +01:00
ifcfg-rh: fix setting MTU to "automatic" for wired connections (rh #569319)
ifcfg-rh plugin was not able to reset MTU to "automatic" if it had been set to a value, for wired connection. This fix removes "MTU" variable from the ifcfg-* file when mtu is 0.
This commit is contained in:
parent
618c5f1b08
commit
ab529302a7
1 changed files with 1 additions and 0 deletions
|
|
@ -807,6 +807,7 @@ write_wired_setting (NMConnection *connection, shvarFile *ifcfg, GError **error)
|
|||
g_free (tmp);
|
||||
}
|
||||
|
||||
svSetValue (ifcfg, "MTU", NULL, FALSE);
|
||||
mtu = nm_setting_wired_get_mtu (s_wired);
|
||||
if (mtu) {
|
||||
tmp = g_strdup_printf ("%u", mtu);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue