IPAM: piilota vapaat lohkot varatun subnetin alta
Kun subnet on merkitty varatuksi, vapaita lohkoja ei näytetä sen sisällä — koko verkko on jo allokoitu. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3183,8 +3183,8 @@ function flattenTree(nodes, depth, drillId) {
|
||||
const expanded = ipamExpandedIds.has(node.entry.id);
|
||||
rows.push({ entry: node.entry, depth: d, hasChildren, expanded, node, isFree: false });
|
||||
if (hasChildren && expanded) {
|
||||
// Laske vapaat lohkot ja sekoita lasten sekaan osoitejärjestyksessä
|
||||
const freeSpaces = findFreeSpaces(node);
|
||||
// Laske vapaat lohkot vain jos verkko ei ole varattu
|
||||
const freeSpaces = node.entry.tila === 'varattu' ? [] : findFreeSpaces(node);
|
||||
if (freeSpaces.length > 0) {
|
||||
// Yhdistä lapset + vapaat, järjestä osoitteen mukaan
|
||||
const allItems = [
|
||||
|
||||
Reference in New Issue
Block a user