NetworkManager/src/devices
Thomas Haller 7db95727d5 device: refactor reapply_connection()
Reapplying a connection should not be done by iterating over and
(unsorted) @diffs array. Instead the order matters! E.g. first layer 2
before IP settings. Thus extracting those individual updates on a per-setting
base to different reapply_*() functions is more complicated, albeit incorrect
in complex cases. We need full control over how to reapply changes, one
after the other.

Also, once we start applying changes, we cannot really abort on error.
We can only continue best-effort and hope for the best.

Also, always reapply certain settings, even if the configuration doesn't
change. That means, if the user externally deletes a static IP address,
he can call reapply() to restore it. Even though he doesn't provide a
different setting to apply.

Also revert the changes to nm_device_reapply_settings_immediately().
Effectively there is little code that can be reused.

Add audit logging.
2016-01-10 23:14:29 +01:00
..
adsl core: use NM_PLATFORM_GET instead of nm_platform_get() in function calls 2016-01-06 21:25:56 +01:00
bluetooth core,libnm: use nm_clear_g_source() where possible 2016-01-06 21:25:55 +01:00
team core,libnm: use nm_clear_g_source() where possible 2016-01-06 21:25:55 +01:00
tests build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
wifi wifi: refactor creation of NMDeviceWifi/NMDeviceOlpcMesh to initialize in constructed() method 2016-01-06 22:18:25 +01:00
wwan core,libnm: use nm_clear_g_source() where possible 2016-01-06 21:25:55 +01:00
Makefile.am lldp: add test case 2015-11-10 14:25:05 +01:00
nm-device-bond.c platform/trivial: rename sysctl slave/master option functions 2015-12-10 14:33:49 +01:00
nm-device-bond.h device: implement slave property in parent device class 2015-12-05 19:34:06 +01:00
nm-device-bridge.c platform/trivial: rename sysctl slave/master option functions 2015-12-10 14:33:49 +01:00
nm-device-bridge.h device: implement slave property in parent device class 2015-12-05 19:34:06 +01:00
nm-device-ethernet-utils.c all: drop includes to <glib/gi18n.h> for "nm-default.h" 2015-08-05 15:35:51 +02:00
nm-device-ethernet-utils.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-ethernet.c device: wait for valid MAC before making ethernet devices available 2016-01-07 11:53:05 +01:00
nm-device-ethernet.h device: export S390Subchannels property on Ethernet device 2015-09-29 09:30:01 +02:00
nm-device-factory.c core: fix interface type names 2015-09-10 13:43:47 -04:00
nm-device-factory.h core: fix interface type names 2015-09-10 13:43:47 -04:00
nm-device-generic.c device: pass const NMPlatformLink instance to setup_start()/setup_finish() 2015-12-09 17:05:45 +01:00
nm-device-generic.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-infiniband.c device/infiniband: take interface down to set transport mode 2016-01-05 18:53:22 +01:00
nm-device-infiniband.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-ip-tunnel.c ip-tunnel: add a MTU property 2015-12-19 12:06:33 +01:00
nm-device-ip-tunnel.h device/ip-tunnel: add support for IP6TNL tunnels 2015-12-01 17:39:41 +01:00
nm-device-logging.h logging: declare default logging macros in "nm-logging.h" 2015-08-20 11:15:13 +02:00
nm-device-macvlan.c core: always use gulong to store signal handler ids 2016-01-06 21:25:55 +01:00
nm-device-macvlan.h device/macvlan: support device creation 2015-12-09 14:30:08 +01:00
nm-device-private.h core: ensure platform links are compatible with the NMDevice 2015-12-04 12:16:41 +01:00
nm-device-tun.c tun: add support for MTU and cloned-mac-address properties 2015-12-19 12:06:33 +01:00
nm-device-tun.h device/tun: support device creation 2015-11-25 11:39:57 +01:00
nm-device-veth.c platform/trivial: rename link related functions 2015-12-10 14:33:49 +01:00
nm-device-veth.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-vlan.c core: always use gulong to store signal handler ids 2016-01-06 21:25:55 +01:00
nm-device-vlan.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-vxlan.c vxlan: add support for MTU and cloned-mac-address properties 2015-12-19 12:06:33 +01:00
nm-device-vxlan.h device/vxlan: support device creation 2015-12-09 16:36:46 +01:00
nm-device.c device: refactor reapply_connection() 2016-01-10 23:14:29 +01:00
nm-device.h device: wait for valid MAC before making ethernet devices available 2016-01-07 11:53:05 +01:00
nm-lldp-listener.c systemd: merge branch 'systemd' into master 2016-01-04 17:03:11 +01:00
nm-lldp-listener.h lldp: decouple NMLldpListener from platform 2015-11-10 14:17:42 +01:00