Commit c713490e authored by Martín Ferrari's avatar Martín Ferrari

ipv6 config stuff

parent 7aa476a2
......@@ -47,6 +47,10 @@ class NSInterface(Interface):
def __init__(self, node, index):
super(NSInterface, self).__init__(index)
self._slave = node._slave
# Disable auto-configuration
# you wish: need to take into account the nonetns mode; plus not
# touching some pre-existing ifaces
#node.system(['/sbin/sysctl', '-w', 'net.ipv6.conf.%s.autoconf=0' % self.name])
node._add_interface(self)
# some black magic to automatically get/set interface attributes
......
......@@ -162,7 +162,8 @@ def _start_child(debug, nonetns):
unshare.unshare(unshare.CLONE_NEWNET)
# Enable packet forwarding
netns.iproute._execute(['sysctl', '-w', 'net.ipv4.ip_forward=1'])
# FIXME: ipv6?
netns.iproute._execute(['sysctl', '-w',
'net.ipv6.conf.default.forwarding=1'])
srv.run()
except BaseException, e:
s = "Slave node aborting: %s\n" % str(e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment