[node-patches] Change in ovirt-node[master]: network: Fix has_link doctest

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri May 31 10:47:52 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: network: Fix has_link doctest
......................................................................

network: Fix has_link doctest

Change-Id: I01ab980acfd5a936c63346bd7e669e1e4f517edd
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/network.py
1 file changed, 0 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/52/15252/1

diff --git a/src/ovirt/node/utils/network.py b/src/ovirt/node/utils/network.py
index 848e42a..a66c077 100644
--- a/src/ovirt/node/utils/network.py
+++ b/src/ovirt/node/utils/network.py
@@ -308,13 +308,6 @@
         >>> NIC("lo").has_link()
         True
 
-        >>> iface = all_ifaces()[0]
-        >>> cmd = "ip link set dev {dev} up ;"
-        >>> cmd += "ip link show {dev}".format(dev=iface)
-        >>> has_carrier = "LOWER_UP" in process.pipe(cmd)
-        >>> has_carrier == NIC(iface).has_link()
-        True
-
         Args:
             iface: The interface to be checked
         Returns:


--
To view, visit http://gerrit.ovirt.org/15252
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I01ab980acfd5a936c63346bd7e669e1e4f517edd
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