NetworkManager/src/settings
Lubomir Rintel 06da353242 core: separate active and applied connection
Clone the connection upon activation. This makes it safe for the user
to modify the original connection while it is activated.

This involves several changes:

- NMActiveConnection gets @settings_connection and @applied_connection.
  To support add-and-activate, we constructing a NMActiveConnection with
  no connection set. Previously, we would set the "connection" field to
  a temporary NMConnection. Now NMManager piggybacks this temporary
  connection as object-data (TAG_ACTIVE_CONNETION_ADD_AND_ACTIVATE).

- get rid of the functions nm_active_connection_get_connection_type()
  and nm_active_connection_get_connection_uuid(). From their names
  it is unclear whether this returns the settings or applied connection.
  The (few) callers should figure that out themselves.

- rename nm_active_connection_get_id() to
  nm_active_connection_get_settings_connection_id(). This function
  is only used internally for logging.

- dispatcher calls now get two connections as well. The
  applied-connection is used for the connection data, while
  the settings-connection is used for the connection path.

- needs special handling for properties that apply immediately
  when changed (nm_device_reapply_settings_immediately()).

Co-Authored-By: Thomas Haller <thaller@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=724041
2015-09-18 17:32:11 +02:00
..
plugins ifcfg-rh: ignore GATEWAY from network file for DHCP connections (rh #1262972) 2015-09-17 15:02:35 +02:00
nm-agent-manager.c core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-agent-manager.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-inotify-helper.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-inotify-helper.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-secret-agent.c secrets: make agent-manager independent from NMSettingsConnection 2015-09-18 16:12:36 +02:00
nm-secret-agent.h secrets: make agent-manager independent from NMSettingsConnection 2015-09-18 16:12:36 +02:00
nm-settings-connection.c core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-settings-connection.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-settings-plugin.c core: fix interface type names 2015-09-10 13:43:47 -04:00
nm-settings-plugin.h core: fix interface type names 2015-09-10 13:43:47 -04:00
nm-settings.c core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-settings.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00