diff options
| author | Thomas Haller <thaller@redhat.com> | 2016-01-07 11:55:44 +0100 |
|---|---|---|
| committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-01-10 23:14:29 +0100 |
| commit | 7db95727d5936a0cfa347c6ea0937eee4ff87198 (patch) | |
| tree | f3a696da9746409072d5c11ed9401a35edae2d43 /docs/api | |
| parent | 06dfaeec0967ed9065ff04391658ed6f18f6e621 (diff) | |
| download | NetworkManager-lr/reapply.tar.gz | |
device: refactor reapply_connection()lr/reapply
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.
Diffstat (limited to 'docs/api')
0 files changed, 0 insertions, 0 deletions
