Hello Petr Horáček, Dan Kenigsberg,

I'd like you to do a code review.  Please visit

    https://gerrit.ovirt.org/64396

to review the following change.

Change subject: net: Expose disable IPv6 through ip.address module
......................................................................

net: Expose disable IPv6 through ip.address module

Change-Id: I0673da939d575ab43d53cdb1fced4273db05e6c7
Signed-off-by: Edward Haas <edwa...@redhat.com>
Bug-Url: https://bugzilla.redhat.com/1379115
Reviewed-on: https://gerrit.ovirt.org/62830
Reviewed-by: Petr Horáček <phora...@redhat.com>
Continuous-Integration: Jenkins CI
Reviewed-by: Dan Kenigsberg <dan...@redhat.com>
---
M lib/vdsm/network/ip/address.py
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/96/64396/1

diff --git a/lib/vdsm/network/ip/address.py b/lib/vdsm/network/ip/address.py
index 0842eb4..634925a 100644
--- a/lib/vdsm/network/ip/address.py
+++ b/lib/vdsm/network/ip/address.py
@@ -166,6 +166,11 @@
     sysctl.disable_ipv6_local_auto(dev)
 
 
+def disable_ipv6(iface):
+    if ipv6_supported():
+        sysctl.disable_ipv6(iface)
+
+
 def add(iface, ipv4, ipv6):
     if ipv4.address:
         ipwrapper.addrAdd(iface, ipv4.address, ipv4.netmask)


-- 
To view, visit https://gerrit.ovirt.org/64396
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0673da939d575ab43d53cdb1fced4273db05e6c7
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-4.0
Gerrit-Owner: Edward Haas <edwa...@redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com>
Gerrit-Reviewer: Petr Horáček <phora...@redhat.com>
_______________________________________________
vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org
To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org

Reply via email to