peterbaumert / netbox-device-view

47 stars 6 forks source link

Amazing plugin - A few comments #21

Open joaolucasmacedo opened 1 year ago

joaolucasmacedo commented 1 year ago

This is just amazing plugin, congrats! But here is a few questions. What means that "something_else" option on the device view?

I could set device views easily for Cisco 24 port devices, but how can I use it for small switches like Unifi Lite etc?

Could you provide a few more example with 1 row devices and/or less then 24 ports?

I have a 24 port Unifi switch and the interface names are like "Port 1", "Port 2", "Port 3". All device views I tried broke the device visualization. How is the logic on matching interface names? Can I use interface names with spaces?

Is it possible to show the rear view of the device and power interfaces and console ports?

I'm sorry if I miss something. I just got here by chance and found this amazing job.

peterbaumert commented 1 year ago

First of all thanks!

To your issues. The "port naming detection" is kind of cisco only right now. In other issues it was mentioned already and i will take care of this. I was quite busy the last few weeks so i couldnt work on anything. Now i have a week vacation and i hope my son will not "kidnap" me the whole time so i can work on it. I will then also add example for some unifi "1 row" devices.

Hope you can wait :)

The rear view part is a good idea as new feature too.

peterbaumert commented 1 year ago

This is just amazing plugin, congrats! But here is a few questions. What means that "something_else" option on the device view?

I could set device views easily for Cisco 24 port devices, but how can I use it for small switches like Unifi Lite etc?

Could you provide a few more example with 1 row devices and/or less then 24 ports?

I have a 24 port Unifi switch and the interface names are like "Port 1", "Port 2", "Port 3". All device views I tried broke the device visualization. How is the logic on matching interface names? Can I use interface names with spaces?

Is it possible to show the rear view of the device and power interfaces and console ports?

I'm sorry if I miss something. I just got here by chance and found this amazing job.

Which 1 row device do you have? Then i can work out a sample for that specific one.

joaolucasmacedo commented 1 year ago

Which 1 row device do you have? Then i can work out a sample for that specific one.

Mikortik RB 2011, 3011, 4011, 5009 for instance. When I say "one row" you can consider any regular 1U switch, or router, like Unifi Lite series or USW-Enterprise-24-PoE

peterbaumert commented 1 year ago

If you used https://github.com/netbox-community/devicetype-library/blob/master/device-types/Ubiquiti/USW-Enterprise-24-PoE.yaml as a template then

/* UniFi Switch Enterprise 24 PoE */
.deviceview.area {
    grid-template-areas:
        "x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x"
        "y y port-1 port-2 port-3 port-4 port-5 port-6 port-7 port-8 s1 port-9 port-10 port-11 port-12 port-13 port-14 port-15 port-16 s2 port-17 port-18 port-19 port-20 port-21 port-22 port-23 port-24 s3 sfp--25 sfp--26 z";
}

is hopefully what you looking for