Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 690080 Details for
Bug 905059
NM can not take down bridge connection via CLI at all and awkwardly via applet
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Ensure disconnected master doesn't get reactivated by autoconnect slave
0001-core-don-t-allow-auto-activation-of-a-master-that-ha.patch (text/plain), 3.63 KB, created by
Dan Williams
on 2013-01-29 23:43:59 UTC
(
hide
)
Description:
Ensure disconnected master doesn't get reactivated by autoconnect slave
Filename:
MIME Type:
Creator:
Dan Williams
Created:
2013-01-29 23:43:59 UTC
Size:
3.63 KB
patch
obsolete
>From 5b7f3aeaaad4a45daf12116b6745685ee0c6632f Mon Sep 17 00:00:00 2001 >From: Dan Williams <dcbw@redhat.com> >Date: Tue, 29 Jan 2013 15:38:48 -0600 >Subject: [PATCH] core: don't allow auto-activation of a master that has been disconnected > >The master-activation code was ignoring whether or not the master device >was inhibiting automatic connections. >--- > src/nm-manager.c | 27 +++++++++++++++++++++++++++ > 1 files changed, 27 insertions(+), 0 deletions(-) > >diff --git a/src/nm-manager.c b/src/nm-manager.c >index ddf0fc3..8300b9b 100644 >--- a/src/nm-manager.c >+++ b/src/nm-manager.c >@@ -303,6 +303,7 @@ typedef enum > NM_MANAGER_ERROR_ALREADY_ASLEEP_OR_AWAKE, > NM_MANAGER_ERROR_ALREADY_ENABLED_OR_DISABLED, > NM_MANAGER_ERROR_DEPENDENCY_FAILED, >+ NM_MANAGER_ERROR_AUTOCONNECT_NOT_ALLOWED, > } NMManagerError; > > #define NM_MANAGER_ERROR (nm_manager_error_quark ()) >@@ -349,6 +350,8 @@ nm_manager_error_get_type (void) > ENUM_ENTRY (NM_MANAGER_ERROR_ALREADY_ENABLED_OR_DISABLED, "AlreadyEnabledOrDisabled"), > /* A dependency of this connection failed. */ > ENUM_ENTRY (NM_MANAGER_ERROR_DEPENDENCY_FAILED, "DependencyFailed"), >+ /* Autoconnect is not allowed. */ >+ ENUM_ENTRY (NM_MANAGER_ERROR_AUTOCONNECT_NOT_ALLOWED, "AutoconnectNotAllowed"), > { 0, 0, 0 }, > }; > etype = g_enum_register_static ("NMManagerError", values); >@@ -3588,6 +3591,10 @@ ensure_master_active_connection (NMManager *self, > nm_device_get_path (master_device), > user_requested, > error); >+ if (!ac_path) { >+ g_prefix_error (error, "Master device %s activation failed: ", >+ nm_device_get_iface (master_device)); >+ } > master_ac = ac_path ? nm_manager_get_act_request_by_path (self, ac_path, NULL) : NULL; > g_slist_free (connections); > return master_ac; >@@ -3636,6 +3643,10 @@ ensure_master_active_connection (NMManager *self, > nm_device_get_path (candidate), > user_requested, > error); >+ if (!ac_path) { >+ g_prefix_error (error, "Master device %s activation failed: ", >+ nm_device_get_iface (candidate)); >+ } > return ac_path ? nm_manager_get_act_request_by_path (self, ac_path, NULL) : NULL; > } > >@@ -3649,6 +3660,13 @@ ensure_master_active_connection (NMManager *self, > NULL, > user_requested, > error); >+ if (!ac_path) { >+ char *vif_name; >+ >+ vif_name = get_virtual_iface_name (self, connection, NULL); >+ g_prefix_error (error, "Master device %s activation failed: ", vif_name); >+ g_free (vif_name); >+ } > return ac_path ? nm_manager_get_act_request_by_path (self, ac_path, NULL) : NULL; > } > >@@ -3845,6 +3863,15 @@ nm_manager_activate_connection (NMManager *manager, > return NULL; > } > >+ /* If this is an autoconnect request, but the device isn't allowing autoconnect >+ * right now, we reject it. >+ */ >+ if (!user_requested && !nm_device_autoconnect_allowed (device)) { >+ g_set_error_literal (error, NM_MANAGER_ERROR, NM_MANAGER_ERROR_AUTOCONNECT_NOT_ALLOWED, >+ "Device does not allow automatic connections at this time"); >+ return NULL; >+ } >+ > /* Try to find the master connection/device if the connection has a dependency */ > if (!find_master (manager, connection, device, &master_connection, &master_device)) { > g_set_error_literal (error, NM_MANAGER_ERROR, NM_MANAGER_ERROR_UNKNOWN_DEVICE, >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 905059
: 690080