Hello,
i am trying to use a linux namespace with ns3 so i can run the ospf
quagga example to test the convergence level with ns3, i have
installed rpyc and netns3 and the built sucessfully i also installed
ns3 with python bindings, but when i try to run the example i get this
error, pls can anyone help
root@alice-laptop:~/netns3/examples# ./csma-line-quagga.py -n 4
/home/alice/netns3/examples/netns3.py:3: DeprecationWarning: the ns3
module is a compatibility layer and should not be used in newly
written code
import ns3
Traceback (most recent call last):
File "./csma-line-quagga.py", line 92, in <module>
x.main()
File "/home/alice/netns3/examples/netns3.py", line 149, in main
self.run()
File "/home/alice/netns3/examples/netns3.py", line 118, in run
self.setup()
File "./csma-line-quagga.py", line 85, in setup
CsmaExperiment.setup(self)
File "/home/alice/netns3/examples/netns3.py", line 175, in setup
self.createnodes(self.options.numnodes, devhelper)
File "./csma-line-quagga.py", line 27, in createnodes
n = NetnsNode(name, logfile = "/tmp/%s.log" % name)
File "/home/alice/netns3/examples/netns3.py", line 45, in __init__
Netns3.__init__(self, *args, **kwds)
File "/usr/local/lib/python2.6/dist-packages/netns.py", line 245, in
__init__
self.start()
File "/usr/local/lib/python2.6/dist-packages/netns.py", line 251, in
start
self.pid, self.port = self.spawnserver(
self.name, self.logfile)
File "/usr/local/lib/python2.6/dist-packages/netns.py", line 219, in
spawnserver
(cls.__name__, erroutput.strip()))
ValueError: NetnsNode.spawnserver() failed:
creating netns failed: [Errno 22] Invalid argument
root@alice-laptop:~/netns3/examples#
thankyou