peterbaumert / netbox-device-view

46 stars 7 forks source link

Not using interface names as provided #30

Open Computroniks opened 10 months ago

Computroniks commented 10 months ago

First of all, thanks for creating this plugin, it is really useful.

I have a Juniper switch with the interface names ge-0/0/0, ge-0/0/1 and so on. When I create the grid-template-areas definition, I would expect to use ge-0-0-0, ge-0-0-1... for each of the interface names, however this does not work as expected and results in a blank diagram. Instead for some reason the plugin uses ge-0-0, ge-0-1 which is not intuitive (and took me a while of messing around to figure out). Perhaps it would be a good idea to at least call this out in the documentation or perhaps alter the behaviour to use the sanitised interface names directly, without removing parts?

peterbaumert commented 10 months ago

Hi,

Yeah the reasoning behind removing parts was for accomodating for stacks where the first number is the place in the stack itself and then you would need to create man css selectors for each combination x-0-0.

I was very busy at work lately and havent had time to look into it. It was mention already in other issues. I will try my best to get something done this or next week. When i have some free days and my wife hasnt any christmas chores for me to do :D

Computroniks commented 10 months ago

No worries, that makes sense. I think maybe even just a note in README explaining how it works could be useful, just to help people (like me) who didn't quite realise what was going on.