mirror of
https://src.fedoraproject.org/rpms/virt-manager.git
synced 2025-07-15 16:53:32 +00:00
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
diff -rup virt-manager-0.8.2/src/virtManager/connection.py new/src/virtManager/connection.py
|
|
--- virt-manager-0.8.2/src/virtManager/connection.py 2009-12-14 17:32:35.000000000 -0500
|
|
+++ new/src/virtManager/connection.py 2009-12-14 18:56:03.000000000 -0500
|
|
@@ -170,7 +170,8 @@ class vmmConnection(gobject.GObject):
|
|
"""
|
|
Determine how we will be polling for net devices (HAL or libvirt)
|
|
"""
|
|
- if self.is_nodedev_capable() and self.interface_capable:
|
|
+ if (self.is_remote() and
|
|
+ self.is_nodedev_capable() and self.interface_capable):
|
|
try:
|
|
self._build_libvirt_netdev_list()
|
|
self.netdev_use_libvirt = True
|
|
@@ -207,7 +208,7 @@ class vmmConnection(gobject.GObject):
|
|
logging.debug("Using HAL for netdev enumeration")
|
|
|
|
def _init_mediadev(self):
|
|
- if self.is_nodedev_capable():
|
|
+ if self.is_remote() and self.is_nodedev_capable():
|
|
try:
|
|
self.connect("nodedev-added", self._nodedev_mediadev_added)
|
|
self.connect("nodedev-removed", self._nodedev_mediadev_removed)
|