Add missing node tracking for config-defined nodes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -991,6 +991,9 @@
|
||||
if (node.interfaces) {
|
||||
node.interfaces.forEach(iface => {
|
||||
if (iface.mac) ids.push(iface.mac.toLowerCase());
|
||||
if (iface.ips) {
|
||||
iface.ips.forEach(ip => ids.push(ip.toLowerCase()));
|
||||
}
|
||||
});
|
||||
}
|
||||
return ids;
|
||||
@@ -1147,7 +1150,7 @@
|
||||
name: loc.name || '',
|
||||
anonymous: anonymous,
|
||||
direction: loc.direction || 'horizontal',
|
||||
nodeRefs: (loc.nodes || []).map(n => n.toLowerCase()),
|
||||
nodeRefs: (loc.nodes || []).map(n => (n.name || n.mac || n.ip || '').toLowerCase()),
|
||||
parent: parent,
|
||||
children: []
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user