NetworkManager/src/settings
Jiří Klimeš 0aa99069ed ifcfg-rh: ignore GATEWAY from network file for DHCP connections (rh #1262972)
The GATEWAY from /etc/sysconfig/network file is used as a default value when
no GATEWAY is in ifcfg file. However, we have to ignore that GATEWAY for
connections without static addresses. Otherwise such connections would be
invalid and would disappear after restart/reaload.

Some notes:
Putting GATEWAY into /etc/sysconfig/network is not recommended, because it
inherently belongs to the ifcfg file as it is a per-interface property.
The recommended practice is to specify GATEWAY in individual ifcfg files and
define DEFROUTE=no if the interface should not get the default route.
But we continue to read GATEWAY from /etc/sysconfig/network for compatibility
reasons.
See also
https://bugzilla.redhat.com/show_bug.cgi?id=896198#c25
https://bugzilla.redhat.com/show_bug.cgi?id=896198#c27

Fixes: f17699f4e3

https://bugzilla.redhat.com/show_bug.cgi?id=1262972

(cherry picked from commit ed85fcc711)
2015-09-17 15:09:51 +02:00
..
plugins ifcfg-rh: ignore GATEWAY from network file for DHCP connections (rh #1262972) 2015-09-17 15:09:51 +02:00
nm-agent-manager.c agent-manager: memleak: unref the last agent for a request too 2015-02-18 18:16:31 +01:00
nm-agent-manager.h libnm-core, settings: move NMAgentManagerError to nm-errors 2014-10-22 08:29:09 -04:00
nm-inotify-helper.c core/trivial: rename singleton variables according to default name 2015-03-13 11:50:50 +01:00
nm-inotify-helper.h settings: add note about killing inotify helper (bgo #532815) 2013-01-11 13:02:12 -06:00
nm-secret-agent.c agent-manager: don't ever fail the secrets requests from GetSecrets() 2014-12-11 11:15:53 +01:00
nm-secret-agent.h all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-settings-connection.c logging: declare default logging macros in "nm-logging.h" 2015-08-20 18:05:43 +02:00
nm-settings-connection.h settings/trivial: consistently name @self argument in NMSettingsConnection 2015-08-20 18:05:43 +02:00
nm-settings.c settings: get_plugin() should return plugin that has all requested capabilities 2015-07-07 17:22:15 +02:00
nm-settings.h nm-settings: add nm_settings_has_connection() 2015-05-05 16:37:06 +02:00
nm-system-config-interface.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-system-config-interface.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00