about summary refs log tree commit diff
path: root/src/core/nm-checkpoint.c
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2022-03-08 14:36:58 -0500
committerJeremy Bicha <jeremy.bicha@canonical.com>2022-03-08 14:36:58 -0500
commit53010f05df012183a1f9d9e7ca684b5fe722563d (patch)
treee1e0cc839b8517d9392787d79bf4265a5e6f9b33 /src/core/nm-checkpoint.c
parent9a04f21da9a5ab80d69c0d2832360d82c471916c (diff)
parent0514770b02f34ccb56b6bc52010452663c6717ed (diff)
Merge tag 'debian/1.36.2-1' into ubuntu/master
network-manager Debian release 1.36.2-1
Diffstat (limited to 'src/core/nm-checkpoint.c')
-rw-r--r--src/core/nm-checkpoint.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/nm-checkpoint.c b/src/core/nm-checkpoint.c
index 0153af97..5b48f91a 100644
--- a/src/core/nm-checkpoint.c
+++ b/src/core/nm-checkpoint.c
@@ -282,6 +282,11 @@ restore_and_activate_connection(NMCheckpoint *self, DeviceCheckpoint *dev_checkp
          * an internal subject. */
         if (nm_device_get_state(dev_checkpoint->device) > NM_DEVICE_STATE_DISCONNECTED
             && nm_device_get_state(dev_checkpoint->device) < NM_DEVICE_STATE_DEACTIVATING) {
+            if (!NM_FLAGS_HAS(priv->flags, NM_CHECKPOINT_CREATE_FLAG_NO_PRESERVE_EXTERNAL_PORTS)) {
+                nm_device_activation_state_set_preserve_external_ports(dev_checkpoint->device,
+                                                                       TRUE);
+            }
+
             nm_device_state_changed(dev_checkpoint->device,
                                     NM_DEVICE_STATE_DEACTIVATING,
                                     NM_DEVICE_STATE_REASON_NEW_ACTIVATION);