Hello Dan Kenigsberg,
I'd like you to do a code review. Please visit
https://gerrit.ovirt.org/49687
to review the following change.
Change subject: net: sysctl: enable ipv6
......................................................................
net: sysctl: enable ipv6
Enable sysctl.py:disable_ipv6(dev) to set /pro/sys/.../disable_ipv6
also to '0'. This is needed in following Open vSwitch hook patch.
Change-Id: Ifeb47c9df152b29926f40b9b41a3ad5b7e659ddd
Signed-off-by: Petr Horáček <[email protected]>
Reviewed-on: https://gerrit.ovirt.org/44992
Reviewed-by: Dan Kenigsberg <[email protected]>
Continuous-Integration: Dan Kenigsberg <[email protected]>
Bug-Url: https://bugzilla.redhat.com/1234867
---
M lib/vdsm/sysctl.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/87/49687/1
diff --git a/lib/vdsm/sysctl.py b/lib/vdsm/sysctl.py
index 766ae11..957e61f 100644
--- a/lib/vdsm/sysctl.py
+++ b/lib/vdsm/sysctl.py
@@ -38,9 +38,9 @@
set_rp_filter(dev, _RPFILTER_STRICT)
-def disable_ipv6(dev):
+def disable_ipv6(dev, disable=True):
with open('/proc/sys/net/ipv6/conf/%s/disable_ipv6' % dev, 'w') as f:
- f.write('1')
+ f.write('1' if disable else '0')
def is_disabled_ipv6():
--
To view, visit https://gerrit.ovirt.org/49687
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifeb47c9df152b29926f40b9b41a3ad5b7e659ddd
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Petr Horáček <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches