Backport to stable nm-0-9-10: bridge availability




Backport to stable nm-0-9-10,
bridge device availability due to disabling 'networking' prior to reboot.
See:
https://mail.gnome.org/archives/networkmanager-list/2015-April/msg00013.html
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=568a8d1

Nevertheless "systemctl restart NetworkManager.service" is necessary.

---
 src/devices/nm-device-bridge.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c
index 0843bcc..fe838fe 100644
--- a/src/devices/nm-device-bridge.c
+++ b/src/devices/nm-device-bridge.c
@@ -79,9 +79,7 @@ get_generic_capabilities (NMDevice *dev)
 static gboolean
 is_available (NMDevice *dev)
 {
-       if (NM_DEVICE_GET_CLASS (dev)->is_up)
-               return NM_DEVICE_GET_CLASS (dev)->is_up (dev);
-       return FALSE;
+       return TRUE;
 }
 
 static gboolean
-- 
2.1.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]