[node-patches] Change in ovirt-node[master]: net: Configured if IPv6 or IPv4 cfg is present

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon Aug 19 13:21:39 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: net: Configured if IPv6 or IPv4 cfg is present
......................................................................

net: Configured if IPv6 or IPv4 cfg is present

Previously a NIC was only considerred to be configured when an IPv4
configuration was found. Now a NIC is considerred to be configured when
an IPv4 or IPv6 configuration is found.

Change-Id: If528b682e85a89d0340fd9fe63304fd168c2476b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=991296
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/network.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/87/18287/1

diff --git a/src/ovirt/node/utils/network.py b/src/ovirt/node/utils/network.py
index 5f3ca42..7bcc922 100644
--- a/src/ovirt/node/utils/network.py
+++ b/src/ovirt/node/utils/network.py
@@ -222,7 +222,10 @@
     def is_configured(self):
         """If there is a configuration for this NIC
         """
-        return self.config.bootproto or self.config.ipaddr
+        ipv4_configured = self.config.bootproto or self.config.ipaddr
+        ipv6_configured = (self.config.dhcpv6c or self.config.ipv6_autoconf or
+                           self.config.ipv6addr)
+        return ipv4_configured or ipv6_configured
 
     def has_link(self):
         """Determin if L1 is up on a given interface


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

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