importing YAML-defined device type with images #2326
-
I was hoping I'd understood a cool feature but I can't get it to work so maybe I've misunderstood. In the community device-library, the documentation suggests it's possible to define front and rear images by setting the boolean I've defined such a device-type (I took an original yaml file and edited it to make a few changes):
Separately, I've uploaded the png files to the default location:
What I was hoping was that when I imported the device type YAML file, the link would automatically be made to the PNG images corresponding to the device type slug text, but this doesn't appear to work, the links are not created: However, I also noticed that if using a CSV import, the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just to add, if this can't work, it's not the end of the world as it's a few clicks to manually add the devicetype images, but when I'm doing a fresh NetBox install and have my personal library of devicetype images and YAML files, it would be great to be able to inject all this in a couple of easy steps rather than have to click on the web interface for each devicetype :) |
Beta Was this translation helpful? Give feedback.
-
If you create a PR and added these devices with images to this repo and then import it using the import script then it will allow you to import both files and images |
Beta Was this translation helpful? Give feedback.
Hi @xavbroadcast
If you create a PR and added these devices with images to this repo and then import it using the import script then it will allow you to import both files and images