added back in core emane address creation, only when not external
This commit is contained in:
parent
e3e25463eb
commit
087a0f011b
1 changed files with 8 additions and 0 deletions
|
@ -129,9 +129,17 @@ class EmaneNode(EmaneNet):
|
||||||
logger.error(warntxt)
|
logger.error(warntxt)
|
||||||
|
|
||||||
for netif in self.netifs():
|
for netif in self.netifs():
|
||||||
|
external = self.session.emane.get_config("external", self.objid, self.model.name)
|
||||||
|
if external == "0":
|
||||||
|
logger.info("I AM NOT SKIPPING EMANE ADDRESSES")
|
||||||
|
netif.setaddrs()
|
||||||
|
else:
|
||||||
|
logger.info("I AM SKIPPING EMANE ADDRESSES")
|
||||||
|
|
||||||
if not self.session.emane.genlocationevents():
|
if not self.session.emane.genlocationevents():
|
||||||
netif.poshook = None
|
netif.poshook = None
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# at this point we register location handlers for generating
|
# at this point we register location handlers for generating
|
||||||
# EMANE location events
|
# EMANE location events
|
||||||
netif.poshook = self.setnemposition
|
netif.poshook = self.setnemposition
|
||||||
|
|
Loading…
Add table
Reference in a new issue