daemon: updates to support running emane on the fly for a newly connected link

This commit is contained in:
Blake Harnden 2020-07-05 21:56:22 -07:00
parent 5cc4d92760
commit b3a4b1cb10
3 changed files with 14 additions and 4 deletions

View file

@ -252,8 +252,8 @@ class EmaneManager(ModelManager):
"""
with self._emane_node_lock:
if emane_net.id in self._emane_nets:
raise KeyError(
f"non-unique EMANE object id {emane_net.id} for {emane_net}"
raise CoreError(
f"duplicate emane network({emane_net.id}): {emane_net.name}"
)
self._emane_nets[emane_net.id] = emane_net