jasonyates / netbox-documents

Plugin to manage site, circuit and device diagrams and documents in Netbox
Apache License 2.0
128 stars 20 forks source link

Feature request: Add documents for power panels #53

Open BYT3M3 opened 6 months ago

BYT3M3 commented 6 months ago

It would be nice to be able to add electrical schematics for every power panel.

felbinger commented 5 months ago

Today I created PR #54 which adds documents for virtual machines. If you're interested in implementing it yourself this might be a good starting point.

If not, I may do it when I have some free time. It's just copying stuff arround and testing if the changes work as expected.

felbinger commented 5 months ago

Beside electrical schematics which document types do you need?

BYT3M3 commented 5 months ago

Beside electrical schematics which document types do you need?

The bare minimum is to have support for PDF and PNG.

It would be ideal if I could simply upload the actual CAD files (autocad DWG/DXF, EPlan, QElectrotech, ...).

felbinger commented 5 months ago

Allowed filetypes are set globally. I mean the choices for the document type field in netbox, e.g.:

 CHOICES = [
        ('diagram', 'Network Diagram', 'green'),
        ('manual', 'Manual', 'pink'),
        ('purchaseorder', 'Purchase Order', 'orange'),
        ('quote', 'Quote', 'indigo'),
        ('supportcontract', 'Support Contract', 'blue'),
        ('other', 'Other', 'gray'),
    ]

For power panels I already have:

    CHOICES = [
        ('schematic', 'Electrical Schematic', 'red'),
        ('other', 'Other', 'gray'),
    ]
felbinger commented 5 months ago

The extension is working now, so it would be nice to get some feedback regarding the document types. Otherwise I will convert this draft pr to an pr that can be reviewed and merged.