[node-patches] Change in ovirt-node[master]: network: Populate udev with properties
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Thu Oct 18 12:47:54 UTC 2012
Fabian Deutsch has uploaded a new change for review.
Change subject: network: Populate udev with properties
......................................................................
network: Populate udev with properties
Previously not all udev properties were available, now udev is called
again to populate the device entries with the appropriate properties.
rhbz#866584
Change-Id: Ic6a2ac1007d22c89c83b41dd77355e6c2280a14b
Signed-off-by: Fabian Deutsch <fabiand at redhat.com>
---
M scripts/ovirtnode/network.py
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/54/8654/1
diff --git a/scripts/ovirtnode/network.py b/scripts/ovirtnode/network.py
index d66a6ad..2d5d026 100644
--- a/scripts/ovirtnode/network.py
+++ b/scripts/ovirtnode/network.py
@@ -419,6 +419,10 @@
def get_system_nics():
+ # Re-trigger udev for rhbz#866584
+ for sysfspath in glob("/sys/class/net/*"):
+ system_closefds("udevadm test %s > /dev/null 2> /dev/null" % sysfspath)
+
client = _functions.gudev.Client(['net'])
configured_nics = 0
ntp_dhcp = 0
--
To view, visit http://gerrit.ovirt.org/8654
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6a2ac1007d22c89c83b41dd77355e6c2280a14b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list