Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazing plugin - A few comments #21

Open
joaolucasmacedo opened this issue Aug 20, 2023 · 4 comments
Open

Amazing plugin - A few comments #21

joaolucasmacedo opened this issue Aug 20, 2023 · 4 comments
Assignees
Labels

Comments

@joaolucasmacedo
Copy link

joaolucasmacedo commented Aug 20, 2023

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
Copy link
Owner

peterbaumert commented Aug 20, 2023

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants