summaryrefslogtreecommitdiff
path: root/src/nm-checkpoint.h
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-09-23 09:37:42 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2016-10-24 09:57:18 +0200
commitddeef464af9a565e6b6ca7a6470a7ee588079739 (patch)
tree4e053c8327d6e30ba27c534141be0659de91d379 /src/nm-checkpoint.h
parenta5e3016fc96d5c765c5d390ebb9ce380f11cb99c (diff)
downloadNetworkManager-ddeef464af9a565e6b6ca7a6470a7ee588079739.tar.gz
checkpoint: introduce new flags to better restore previous state
When a global checkpoint is created (one with empty device list) we save the status of all devices to restore it later. After the checkpoint new interfaces and connections may appear and they can significantly influence the overall networking status, but we don't consider them at the moment. Introduce a new flag DELETE_NEW_CONNECTIONS to delete any connection added after the checkpoint and similarly a DISCONNECT_NEW_DEVICES to ensure that the connection active on newly appeared devices doesn't disrupt network connectivity. https://bugzilla.redhat.com/show_bug.cgi?id=1378393
Diffstat (limited to 'src/nm-checkpoint.h')
-rw-r--r--src/nm-checkpoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-checkpoint.h b/src/nm-checkpoint.h
index 815ae7be10..fccf8af3f6 100644
--- a/src/nm-checkpoint.h
+++ b/src/nm-checkpoint.h
@@ -41,7 +41,7 @@ typedef struct _NMCheckpointClass NMCheckpointClass;
GType nm_checkpoint_get_type (void);
NMCheckpoint *nm_checkpoint_new (NMManager *manager, GPtrArray *devices, guint32 rollback_timeout,
- GError **error);
+ NMCheckpointCreateFlags flags, GError **error);
guint64 nm_checkpoint_get_rollback_ts (NMCheckpoint *checkpoint);
gboolean nm_checkpoint_includes_device (NMCheckpoint *checkpoint, NMDevice *device);