daemon: provide safe fallback for emane install ifaces, in case external configuration does not exist

This commit is contained in:
Blake Harnden 2020-06-19 13:51:11 -07:00
parent cd6083aed9
commit f07176dd43

View file

@ -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():