daemon: provide safe fallback for emane install ifaces, in case external configuration does not exist
This commit is contained in:
parent
cd6083aed9
commit
f07176dd43
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class EmaneNet(CoreNetworkBase):
|
|||
config = self.session.emane.get_iface_config(
|
||||
self.id, iface, self.model.name
|
||||
)
|
||||
external = config["external"]
|
||||
external = config.get("external", "0")
|
||||
if isinstance(iface, TunTap) and external == "0":
|
||||
iface.setaddrs()
|
||||
if not self.session.emane.genlocationevents():
|
||||
|
|
Loading…
Reference in a new issue