Hi Jeff,
thank you very much for your suggestion. That works now!
In particular, I restored original vnode.py and nodes.py files and when I
run my modified script from CORE GUI it works correctly.
But another problem has risen.
I create a net in the canvas of the CORE GUI with two MDRs and I configure
the wireless interfaces with EMANE.
When I start the emulation, squared red boxes remain around the two nodes
and in the terminal in which I launched cored I find the following error
lines:
core@vcore:/$ sudo cored
CORE daemon v.4.5 started Fri Jun 7 15:37:36 2013
server started, listening on: localhost:4038
new TCP connection: 127.0.0.1:39927
unable to read Xen config file: /etc/core/xen.conf
GUI has connected to session 39927 at Fri Jun 7 15:37:39 2013
SESSION message flags=0x0 sessions=0
request to modify to session 39927
SESSION 39927 STATE 1: DEFINITION at Fri Jun 7 15:38:08 2013
SESSION 39927 STATE 2: CONFIGURATION at Fri Jun 7 15:38:08 2013
location configured: (0.00,0.00,0.00) = (47.57917,-122.13232,2.00000)
scale=150.00
location configured: UTM(565249.28792,5269892.80917,2.00000)
default services for type mdr set to ['zebra', 'OSPFv3MDR', 'vtysh',
'IPForward']
SESSION 39927 STATE 3: INSTANTIATION at Fri Jun 7 15:38:08 2013
Setup EMANE with master=True.
--> Platform XML file: platform.xml
--> Generated file will be placed in:
--> DTDs for validation are from: file:///usr/share/emane/dtd/
--> Name of DTD to validate generated file: transportdaemon.dtd
Done.
Thread-3: exception while handling msg:
CoreEventMessage <msgtype = CORE_API_EVENT_MSG, flags = 0x0 <>>
CORE_TLV_EVENT_TYPE: 3
Traceback (most recent call last):
File "/usr/sbin/cored", line 292, in handlemsg
replies = msghandler(msg)
File "/usr/sbin/cored", line 969, in handleeventmsg
self.session.instantiate(handler=self)
File "/usr/lib/python2.7/dist-packages/core/session.py", line 579, in
instantiate
self.bootnodes(handler)
File "/usr/lib/python2.7/dist-packages/core/session.py", line 675, in
bootnodes
self.addremovectrlif(node=None, remove=False)
File "/usr/lib/python2.7/dist-packages/core/session.py", line 750, in
addremovectrlif
prefix=prefix, updown_script=updown_script)
File "/usr/lib/python2.7/dist-packages/core/session.py", line 387, in
addobj
obj = cls(self, *clsargs, **clskwds)
File "/usr/lib/python2.7/dist-packages/core/netns/nodes.py", line 32, in
__init__
verbose = verbose, start = start)
File "/usr/lib/python2.7/dist-packages/core/netns/vnet.py", line 217, in
__init__
self.startup()
File "/usr/lib/python2.7/dist-packages/core/netns/nodes.py", line 45, in
startup
check_call([self.updown_script, self.brname, "startup"])
File "/usr/lib/python2.7/dist-packages/core/misc/utils.py", line 56, in
check_call
return subprocess.check_call(*args, **kwds)
File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
What might be the problem in your opinion?
Thank you in advantage,
On Wed, May 29, 2013 at 4:51 PM, Ahrenholz, Jeffrey M <
[email protected]> wrote:
> Alessandro,
>
> > MDRs in the original script (the one who worked with CORE 4.3), I
> modified
> > the two files of CORE "nodes.py" and "vnode.py" to reach this goal. I
> > repeated these updates also in this version of CORE.
> > I'm attaching two files containing only the modified parts of these two
> > files.
> >
> > I hope this helps you to understand better my situation. Thank you very
> much.
>
> Here is the manual chapter on Python scripting:
> http://pf.itd.nrl.navy.mil/core/core-html/scripting.html
>
> Since you want to use the "Execute Python script..." option to connect the
> GUI, your script is missing these lines at the end (as described in the
> manual):
>
> if __name__ == "__main__" or __name__ == "__builtin__":
> main()
>
> I was able to run your script from the command-line or GUI. The MDR nodes
> worked across EMANE as expected. Instead of changing nodes.py and vnode.py
> I cut and pasted your changes into your MyMdrNode class in your original
> script; attached is that version.
>
> -Jeff
>
>
--
Alessandro Mancini
_______________________________________________
emane-users mailing list
[email protected]
http://pf.itd.nrl.navy.mil/mailman/listinfo/emane-users