daemon: fixed wireless movement callback to not calculate config for position callback on links that are down

This commit is contained in:
Blake Harnden 2022-04-13 13:43:58 -07:00
parent f811373f0b
commit e5c06fe47c

View file

@ -226,7 +226,10 @@ class WirelessNode(CoreNetworkBase):
for oiface, bridge_name in self.bridges.values():
if iface == oiface:
continue
self.calc_link(iface, oiface)
key = get_key(iface.node.id, oiface.node.id)
link = self.links.get(key)
if link.linked:
self.calc_link(iface, oiface)
def calc_link(self, iface1: CoreInterface, iface2: CoreInterface) -> None:
point1 = iface1.node.position.get()