ifcfg-rh: save bridge STP disabled setting (bgo #694841)
STP defaults to yes in NetworkManager (and the initscripts), so a missing STP value in an ifcfg file means yes/on. Calling svSetValue(STP, NULL) clears that line from the ifcfg, and thus STP gets interpreted as yes. Explicitly set stp to "no" so that the value actually gets saved.
This commit is contained in:
@@ -1328,7 +1328,7 @@ write_bridge_setting (NMConnection *connection, shvarFile *ifcfg, GError **error
|
||||
|
||||
svSetValue (ifcfg, "DEVICE", iface, FALSE);
|
||||
svSetValue (ifcfg, "BRIDGING_OPTS", NULL, FALSE);
|
||||
svSetValue (ifcfg, "STP", NULL, FALSE);
|
||||
svSetValue (ifcfg, "STP", "no", FALSE);
|
||||
svSetValue (ifcfg, "DELAY", NULL, FALSE);
|
||||
|
||||
/* Bridge options */
|
||||
|
Reference in New Issue
Block a user