Drag & drop SVG floor plan designer for NetBox 4.7.2+ with rack/device placement, smart snapping, undo/redo, view mode with status colouring, SVG/PNG export, REST layout API and English/German translations. Co-Authored-By: Claude Opus 5.5 <[email protected]>
17 lines
316 B
Python
17 lines
316 B
Python
from netbox.search import SearchIndex
|
|
|
|
from .models import FloorPlan
|
|
|
|
|
|
class FloorPlanIndex(SearchIndex):
|
|
model = FloorPlan
|
|
fields = (
|
|
('name', 100),
|
|
('description', 500),
|
|
('comments', 5000),
|
|
)
|
|
display_attrs = ('site', 'location', 'description')
|
|
|
|
|
|
indexes = (FloorPlanIndex,)
|