daemon: fixed issue related to updating networks of moved nodes with multiple mobility scripts

This commit is contained in:
Blake Harnden 2020-12-09 15:43:19 -08:00
parent d824fbd1c6
commit 7308dd50ff
2 changed files with 15 additions and 27 deletions

View file

@ -12,7 +12,6 @@ from core.emulator.data import LinkOptions
from core.emulator.enumerations import ConfigDataTypes
from core.errors import CoreError
from core.location.mobility import WirelessModel
from core.nodes.base import CoreNode
from core.nodes.interface import CoreInterface
from core.xml import emanexml
@ -119,13 +118,12 @@ class EmaneModel(WirelessModel):
"""
logging.debug("emane model(%s) has no post setup tasks", self.name)
def update(self, moved: List[CoreNode], moved_ifaces: List[CoreInterface]) -> None:
def update(self, moved_ifaces: List[CoreInterface]) -> None:
"""
Invoked from MobilityModel when nodes are moved; this causes
emane location events to be generated for the nodes in the moved
list, making EmaneModels compatible with Ns2ScriptedMobility.
:param moved: moved nodes
:param moved_ifaces: interfaces that were moved
:return: nothing
"""