ifcfg-rh: short circuit the IP configuration parsing on IPv4LL

We need the other keys, such as may_fail, too.
This commit is contained in:
Lubomir Rintel 2016-02-24 13:13:09 +01:00
parent 7d1709d7f6
commit 2e2f56697f

View file

@ -973,12 +973,7 @@ make_ip4_setting (shvarFile *ifcfg,
else
method = NM_SETTING_IP4_CONFIG_METHOD_DISABLED;
} else if (!g_ascii_strcasecmp (value, "autoip")) {
g_free (value);
g_object_set (s_ip4,
NM_SETTING_IP_CONFIG_METHOD, NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL,
NM_SETTING_IP_CONFIG_NEVER_DEFAULT, never_default,
NULL);
return NM_SETTING (s_ip4);
method = NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL;
} else if (!g_ascii_strcasecmp (value, "shared")) {
int idx;