NetworkManager/src/devices
Thomas Haller a685ec45dd device: fix reapplying changes to connection ID and UUID
4 properties are not really relevant for an already activated connection
or it makes not sense to change them. These are connection.id, connection.uuid,
connection.autoconnect and connection.stable-id.

For convenience, we allow to reapply these. This way, one can take
a different setting (e.g. with a different connection.id or
connection.uuid) and reapply them, but such changes are silently
ignored.

However this was done wrongly. Instead of reverting the change to the new
applied connection, we would change the input connection.

This is bad, for example with

  nmcli connection up uuid cb922f18-e99a-49c6-b200-1678b5070a82
  nmcli connection modify cb922f18-e99a-49c6-b200-1678b5070a82 con-name "bogus"
  nmcli device reapply eth0

the last re-apply would reset the settings-connection's connection ID to
what was before, while accepting the new name on the applied-connection
(while it should have been rejected).

Fixes: bf3b3d444c ('device: avoid changing immutable properties during reapply')

(cherry picked from commit adb51c2a7f)
(cherry picked from commit 09f37d5bd4)
(cherry picked from commit 9c72ca5ee9)
(cherry picked from commit b1209e37db)
(cherry picked from commit cacb80e567)
(cherry picked from commit 0e8fb0add0)
(cherry picked from commit 932efa7a90)
2019-07-18 12:22:57 +02:00
..
adsl ip[46]-config/trivial: move code around 2017-01-16 17:24:36 +01:00
bluetooth device: separately handle NMDevice's autoconnect by user and internal decision 2017-02-17 19:39:25 +01:00
team device: refactor setting user-configured MTU during config commit 2017-01-16 17:29:06 +01:00
tests lldp: fix parsing of vlan-name attribute 2018-11-22 10:04:44 +01:00
wifi wifi: fix leaking fake AP in NMDeviceWifi's act_stage1_prepare() 2018-09-13 16:30:58 +02:00
wwan wwan: don't assume DNS info is always available for IPv6 2018-10-12 00:22:09 +02:00
nm-arping-manager.c build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nm-arping-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-bond.c bond: fix crash in update_connection() 2017-02-07 11:13:20 +01:00
nm-device-bond.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-bridge.c device/bridge: support setting bridge MTU via wired setting 2017-01-16 17:29:44 +01:00
nm-device-bridge.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-ethernet-utils.c device: use NMSettings directly instead of NMConnectionProvider in subclasses 2016-05-24 12:35:58 +02:00
nm-device-ethernet-utils.h device: use NMSettings directly instead of NMConnectionProvider in subclasses 2016-05-24 12:35:58 +02:00
nm-device-ethernet.c supplicant: rework nm_supplicant_interface_set_config() to invoke result callback 2017-02-17 19:37:15 +01:00
nm-device-ethernet.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-factory.c core,libnm: introduce NMDeviceMacsec 2017-01-16 17:37:14 +01:00
nm-device-factory.h device: drop factory-no-default global arrays 2016-11-13 15:06:57 +01:00
nm-device-generic.c device: don't try to get carrier detection support when unrealizing 2016-12-19 12:12:14 +01:00
nm-device-generic.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-infiniband.c device: make the MTU globally configurable via connection-defaults 2017-01-17 13:43:50 +01:00
nm-device-infiniband.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-ip-tunnel.c device: make the MTU globally configurable via connection-defaults 2017-01-17 13:43:50 +01:00
nm-device-ip-tunnel.h device: move tracking of parent device from NMDeviceIPTunnel to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-logging.h device: mark _nm_device_log_self_to_device() as unused 2017-01-04 14:18:01 +01:00
nm-device-macsec.c supplicant: rework nm_supplicant_interface_set_config() to invoke result callback 2017-02-17 19:37:15 +01:00
nm-device-macsec.h core,libnm: introduce NMDeviceMacsec 2017-01-16 17:37:14 +01:00
nm-device-macvlan.c device: refactor setting user-configured MTU during config commit 2017-01-16 17:29:06 +01:00
nm-device-macvlan.h device: move tracking of parent device from NMDeviceMacvlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-private.h device: cleanup handling queued state change in NMDevice 2017-02-10 14:47:18 +01:00
nm-device-tun.c platform/tun: don't passing around the ifname guess 2017-01-16 22:14:47 +01:00
nm-device-tun.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-veth.c veth: properly chain up the overridden notify method 2017-01-20 16:29:53 +01:00
nm-device-veth.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-device-vlan.c vlan: use parent interface mtu as default 2017-01-20 18:43:48 +01:00
nm-device-vlan.h device: move tracking of parent device from NMDeviceVlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-vxlan.c device: refactor setting user-configured MTU during config commit 2017-01-16 17:29:06 +01:00
nm-device-vxlan.h device: move tracking of parent device from NMDeviceVxlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device.c device: fix reapplying changes to connection ID and UUID 2019-07-18 12:22:57 +02:00
nm-device.h device: add get_autoconnect_allowed() virtual function 2017-02-17 19:39:28 +01:00
nm-lldp-listener.c lldp: fix parsing of vlan-name attribute 2018-11-22 10:04:44 +01:00
nm-lldp-listener.h core: refactor private data for NMExportedObject and others 2016-10-03 12:04:14 +02:00