try non-fuzzy prior fuzzy mac matching
Fuzzy matching should only be tried if there's no exact match. Otherwise a node in the map might get the wrong label.
This commit is contained in:
parent
ac3366ff13
commit
605765cd12
1 changed files with 8 additions and 5 deletions
|
@ -168,6 +168,9 @@ class NodeDB:
|
|||
|
||||
def import_aliases(self, aliases):
|
||||
for mac, alias in aliases.items():
|
||||
try:
|
||||
node = self.maybe_node_by_mac([mac])
|
||||
except:
|
||||
try:
|
||||
node = self.maybe_node_by_fuzzy_mac(mac)
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue