removed logs from emane network all_link_data
This commit is contained in:
parent
183ffda570
commit
b88df84d62
1 changed files with 0 additions and 5 deletions
|
@ -239,11 +239,9 @@ class EmaneNet(CoreNetworkBase):
|
||||||
self.session.emane.service.publish(0, event)
|
self.session.emane.service.publish(0, event)
|
||||||
|
|
||||||
def all_link_data(self, flags: MessageFlags = MessageFlags.NONE) -> List[LinkData]:
|
def all_link_data(self, flags: MessageFlags = MessageFlags.NONE) -> List[LinkData]:
|
||||||
logging.info("gathering emane links: %s", self.id)
|
|
||||||
links = super().all_link_data(flags)
|
links = super().all_link_data(flags)
|
||||||
# gather current emane links
|
# gather current emane links
|
||||||
nem_ids = set(self.nemidmap.values())
|
nem_ids = set(self.nemidmap.values())
|
||||||
logging.info("known nems: %s", nem_ids)
|
|
||||||
emane_manager = self.session.emane
|
emane_manager = self.session.emane
|
||||||
emane_links = emane_manager.link_monitor.links
|
emane_links = emane_manager.link_monitor.links
|
||||||
considered = set()
|
considered = set()
|
||||||
|
@ -252,15 +250,12 @@ class EmaneNet(CoreNetworkBase):
|
||||||
if considered_key in considered:
|
if considered_key in considered:
|
||||||
continue
|
continue
|
||||||
considered.add(considered_key)
|
considered.add(considered_key)
|
||||||
logging.info("considering emane link: %s", considered_key)
|
|
||||||
nem1, nem2 = considered_key
|
nem1, nem2 = considered_key
|
||||||
# ignore links not related to this node
|
# ignore links not related to this node
|
||||||
if nem1 not in nem_ids and nem2 not in nem_ids:
|
if nem1 not in nem_ids and nem2 not in nem_ids:
|
||||||
logging.info("ignore emane link not within network: %s", (nem1, nem2))
|
|
||||||
continue
|
continue
|
||||||
# ignore incomplete links
|
# ignore incomplete links
|
||||||
if (nem2, nem1) not in emane_links:
|
if (nem2, nem1) not in emane_links:
|
||||||
logging.info("ignore emane link not complete: %s", (nem1, nem2))
|
|
||||||
continue
|
continue
|
||||||
link = emane_manager.get_nem_link(nem1, nem2)
|
link = emane_manager.get_nem_link(nem1, nem2)
|
||||||
if link:
|
if link:
|
||||||
|
|
Loading…
Add table
Reference in a new issue