gregtampa / coreemu

Automatically exported from code.google.com/p/coreemu
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

exception when using ns2 mobility script with nodes linked to multiple wlans #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create two WLAN networks
2. have one node joined to both nets
3. make a ns2 mobility script to move nodes on one WLAN
4. exception occurs

reported on this thread:
http://pf.itd.nrl.navy.mil/pipermail/core-users/2013-November/001408.html

SESSION 51720 STATE 4: RUNTIME at Tue Nov  5 10:36:46 2013
Exception in thread Thread-101:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 759, in run
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/core/misc/event.py", line
63, in __run_events
    event.run()
  File "/usr/local/lib/python2.7/dist-packages/core/misc/event.py", line
35, in run
    self.func(*self.args, **self.kwds)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 881,
in startup
    self.movenodesinitial()
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 606,
in movenodesinitial
    self.session.mobility.updatewlans(moved, moved_netifs)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 164,
in updatewlans
    n.model.update(moved, moved_netifs)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 357,
in update
    self.calclink(netif, netif2)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 367,
in calclink
    (x, y, z) = self._netifs[netif]
KeyError: <core.netns.vif.VEth object at 0xb5a35d4c>
ESSION 51720 STATE 4: RUNTIME at Tue Nov  5 10:36:46 2013
Exception in thread Thread-101:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 759, in run
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/core/misc/event.py", line
63, in __run_events
    event.run()
  File "/usr/local/lib/python2.7/dist-packages/core/misc/event.py", line
35, in run
    self.func(*self.args, **self.kwds)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 881,
in startup
    self.movenodesinitial()
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 606,
in movenodesinitial
    self.session.mobility.updatewlans(moved, moved_netifs)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 164,
in updatewlans
    n.model.update(moved, moved_netifs)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 357,
in update
    self.calclink(netif, netif2)
  File "/usr/local/lib/python2.7/dist-packages/core/mobility.py", line 367,
in calclink
    (x, y, z) = self._netifs[netif]
KeyError: <core.netns.vif.VEth object at 0xb5a35d4c>

Original issue reported on code.google.com by ahrenh...@gmail.com on 9 Nov 2013 at 4:18

GoogleCodeExporter commented 9 years ago
fixed in r541

Original comment by ahrenh...@gmail.com on 29 Jul 2014 at 2:52