diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-10-18 12:32:01 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-10-24 11:58:18 +0200 |
commit | f4dbf27410ce51e95c70b9e2572e30771a67eeed (patch) | |
tree | ee4904a72eb47d920022421dc6ab7c98f822fba1 /src/nm-manager.h | |
parent | 1a67f8df03eed7fcb6160429be48d933991c165d (diff) | |
download | NetworkManager-f4dbf27410ce51e95c70b9e2572e30771a67eeed.tar.gz |
core: track autoconnect for removed software devices (rh #1005913)
When an interface is manually disconnected NM remembers that, and prevents
automatic activation of the device.
However, software devices are removed when they are disconnected, and thus
the state of the device is lost. We need to track autoconnect outside the
device - hash table of interface names not allowed to activate automatically.
Without that the device would be auto-activated again and again, even if
explicitly disconnected.
Test case:
$ nmcli con add type bond ifname bb con-name bb-con
$ nmcli con add type bond-slave ifname em1 con-name b1-con master bb
$ nmcli dev disconnect bb
https://bugzilla.redhat.com/show_bug.cgi?id=1005913
Diffstat (limited to 'src/nm-manager.h')
-rw-r--r-- | src/nm-manager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nm-manager.h b/src/nm-manager.h index e972644e6d..fd6fa0aeee 100644 --- a/src/nm-manager.h +++ b/src/nm-manager.h @@ -125,6 +125,12 @@ gboolean nm_manager_deactivate_connection (NMManager *manager, NMDeviceStateReason reason, GError **error); +void nm_manager_prevent_device_auto_connect (NMManager *manager, + const char *ifname, + gboolean prevent); +gboolean nm_manager_can_device_auto_connect (NMManager *manager, + const char *ifname); + /* State handling */ NMState nm_manager_get_state (NMManager *manager); |