Add structured node config with names/macs/ips and avoid flag

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-31 09:52:51 -08:00
parent 3b8005a28c
commit bb22e16460
8 changed files with 276 additions and 135 deletions

View File

@@ -107,7 +107,11 @@ export function buildLocationTree(locations, parent) {
name: loc.name || '',
anonymous: anonymous,
direction: loc.direction || 'horizontal',
nodeRefs: (loc.nodes || []).map(n => n.toLowerCase()),
nodeRefs: (loc.nodes || []).flatMap(n => [
...(n.names || []).map(name => name.toLowerCase()),
...(n.macs || []).map(mac => mac.toLowerCase()),
...(n.ips || [])
]),
parent: parent,
children: []
};