handle aliases without names
This commit is contained in:
parent
3893963553
commit
db4dec7270
|
@ -171,7 +171,8 @@ class NodeDB:
|
||||||
node.add_mac(mac)
|
node.add_mac(mac)
|
||||||
self._nodes.append(node)
|
self._nodes.append(node)
|
||||||
|
|
||||||
node.name = alias['name']
|
if 'name' in alias:
|
||||||
|
node.name = alias['name']
|
||||||
|
|
||||||
if 'vpn' in alias and alias['vpn']:
|
if 'vpn' in alias and alias['vpn']:
|
||||||
node.interfaces[mac].vpn = True
|
node.interfaces[mac].vpn = True
|
||||||
|
|
Loading…
Reference in a new issue