devicetype-library icon indicating copy to clipboard operation
devicetype-library copied to clipboard

Module Type Image Filename Format

Open NeverBehave opened this issue 1 month ago • 8 comments

Related: https://github.com/netbox-community/devicetype-library/issues/3763

Right now, module type images have different filename format. E.g.

  • https://github.com/netbox-community/devicetype-library/blob/master/module-images/Dell
  • https://github.com/netbox-community/devicetype-library/tree/master/module-images/Panduit

Is there any standard around it?


If not, I have a simple proposal: Create a folder for each of the module: module-images/<manufacture>/<module-type-yaml-filename>/*.<ext>

E.g. module-images/Dell/4V8KD/1.png

We could optionally looking for front.<ext> and rear.<ext>. However since netbox does not have specific fields for them, and current data does have multiple images for single module and might not fit in the front/rear criteria.

NeverBehave avatar Nov 30 '25 04:11 NeverBehave

Hi! How can there be a photo of the back side if the modules are plugged into the equipment through it?

walday avatar Dec 03 '25 04:12 walday

@walday

The front and rear images are optional. For the power module, having the rear is logical but the front is also viable. Use whichever image name makes the most sense for the module.

My main concern right now is how to identify images of the same modules.

NeverBehave avatar Dec 03 '25 04:12 NeverBehave

@harryajc I would also like some input from you here since you are the active maintainer for this repo. Is it something worth looking/accepted into?

NeverBehave avatar Dec 05 '25 19:12 NeverBehave

@walday

The front and rear images are optional. For the power module, having the rear is logical but the front is also viable. Use whichever image name makes the most sense for the module.

My main concern right now is how to identify images of the same modules.

In my opinion, module images are useless - they do not have anchor points for display on diagrams and are only visible when displaying the module type

walday avatar Dec 08 '25 04:12 walday

@walday makes sense. With that being said:

  1. How do we deal with existing images in repo?
  2. How are we handling new contributions to module images?

NeverBehave avatar Dec 08 '25 06:12 NeverBehave

I think the main reason that there is no info around the module images is because they don't actually import using the script so that probably needs fixing but I would say 1 image per module is probably enough, maybe just using the module-slug.png similar to how device images are stored

harryajc avatar Dec 09 '25 13:12 harryajc

@harryajc we then need to pick one image for modules that have multiple images. What would be a good standard for these module images?

Also, here is an example I believe multiple(2+) images might be useful:

https://github.com/netbox-community/devicetype-library/blob/master/module-images/Panduit/panduit-fct-7za.rear.png https://github.com/netbox-community/devicetype-library/blob/master/module-images/Panduit/panduit-fct-7za.front.png

Maybe we can still categorize image as front and rear, or for now, since Netbox is okay with multiple images, put them in folder, use filename as description so at least they can be uploaded properly(?)

NeverBehave avatar Dec 09 '25 17:12 NeverBehave

I think I would just create an experimental PR just to give a look how it would be like under this proposal if time allowed.

NeverBehave avatar Dec 12 '25 22:12 NeverBehave