Introduces a NetBox 4.6 plugin for planning rack layouts (RackConcept, ConceptDevice) without creating real dcim.Rack/dcim.Device objects, so blueprints never appear in rack/device lists, utilization reports, or IPAM. Features: - Copy paths: real rack -> concept, concept -> concept (clone), and concept -> one or more real racks (deploy, with name patterning and dry-run support) - Manual concept creation via a dedicated "Rack Concepts" nav menu - Tenant and tenant group assignment on concepts and planned devices - Partial-width device placement (1/1-1/4) with slot-based collision detection, matching netbox_utilities' partial-width feature - Custom drag-and-drop elevation (netbox-reorder-rack operates on real Device querysets, which concepts don't have) with server-side validation of every move - Full REST API, filtering, CSV import, bulk edit, search integration - Optional, config-driven interop with netbox_utilities (partial-width field mapping) and netbox-reorder-rack, degrading gracefully when either plugin is absent Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
62 lines
1.2 KiB
CSS
62 lines
1.2 KiB
CSS
/* Concept rack elevations. Colours follow the NetBox theme via CSS variables so the
|
|
elevation stays readable in both light and dark mode. */
|
|
|
|
.concept-elevation {
|
|
margin: 0 0.5rem 1rem;
|
|
}
|
|
|
|
.concept-elevation-svg {
|
|
max-width: 100%;
|
|
height: auto;
|
|
user-select: none;
|
|
touch-action: none;
|
|
}
|
|
|
|
.concept-elevation .unit-slot {
|
|
fill: var(--tblr-bg-surface-secondary, #f6f8fa);
|
|
stroke: var(--tblr-border-color, #dadfe5);
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.concept-elevation .unit-slot.drop-target {
|
|
fill: var(--tblr-primary-lt, #d7e7fb);
|
|
}
|
|
|
|
.concept-elevation .unit-label {
|
|
font-size: 10px;
|
|
fill: var(--tblr-secondary, #808f9c);
|
|
}
|
|
|
|
.concept-elevation .rack-frame {
|
|
stroke: var(--tblr-body-color, #35404a);
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.concept-elevation .device-rect {
|
|
stroke: rgba(0, 0, 0, 0.35);
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.concept-elevation .device-label {
|
|
font-size: 11px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.concept-elevation .opposite-hint {
|
|
font-size: 9px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.concept-elevation .device-block.opposite .device-rect {
|
|
stroke-dasharray: 3 2;
|
|
}
|
|
|
|
.concept-elevation[data-editable="true"] .device-block:not(.opposite) {
|
|
cursor: grab;
|
|
}
|
|
|
|
.concept-elevation .device-block.dragging {
|
|
opacity: 0.6;
|
|
cursor: grabbing;
|
|
}
|