Send netdisco-users mailing list submissions to
netdisco-users@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
netdisco-users-requ...@lists.sourceforge.net
You can reach the person managing the list at
netdisco-users-ow...@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Re: Graphical representation of network device
(Gallavardin Antoine)
--- Begin Message ---
Hi Oliver
I found why my physical representation was wrong, I select all port not
only physical port (type = ethernetCsmacd , maybe it his too
restrictive) [1]
* On Avaya positions are like this <switch>.<port> (example : 2.34)
so it was easy for me to build a graphical view
* On Dell ( rebranded cisco in fact), port are defined by
Te<switchnumber>/<module number>/<port number> (example : Te1/0/23)
So I 'll to correct my code [2] and make it more .... agile
Last question : It isn't possible for the moment to shutdown , change
default vlan by API for the moment ?
cheers
Antoine
[1] in fact I want to get a "physical view" for technician ( logical
view like agregate, l3vpn isn't needed for the moment), I was inspired
by Java Device manager view :
https://blog.michaelfmcnamara.com/wp-content/uploads/2008/07/devicemanager-es470.png
[2] Maybe on other manufacturer, port name are different... ( Hi
netdisco community, do you have some example ?)
Le 24/01/2023 à 15:40, Gallavardin Antoine a écrit :
Thanks Oliver !
I'll try to work with thoses advices.
I hope I could make a relation between physical port and configuration
( such vlan / speed )
thanks again !
Antoine
Le 24/01/2023 à 14:50, Oliver Gorwits a écrit :
Hi Antoine
First of all, the front panel work you did looks AMAZING 🤩. I did
something like this a long time ago and it's not easy. Well done!
OK so you want to get just the "physical" ports on a device, the
query is not easy but you can see what we do in the database, here in
the highlighted lines:
https://github.com/netdisco/netdisco/blob/master/lib/App/Netdisco/DB/Result/Virtual/DevicePortSpeed.pm#L17-L20
This is not available in the API. However you could do a Custom
Report using this SQL, and then that Report will automagically be in
the API:
https://github.com/netdisco/netdisco/wiki/Configuration#reports
https://github.com/netdisco/netdisco/wiki/API#run-a-report
I hope this helps.
regards,
Oliver.
On Tue, 24 Jan 2023 at 13:30, Gallavardin Antoine
<antoine.gallavar...@inrae.fr> wrote:
Hello
I'm using the fabulous API in order to get topology from my network.
I'm trying to draw (very basically) the front of each device (by
walking
across all ports) from my inventory ( based on FusionDirectory)
See an example
https://github.com/gallak/fusiondirectory-plugins-netdisco/blob/main/docs/netdisco-device.png
For some device it work well, but for some device such H3C, my
drawing
function didn't work well ( physical and logical port are mixed).
Maybe my approach isn't the good one :
ex :
get all port for 1.1 - 1.48 and 2.1 - 2.48 correspond to one
network
stack with two component with 48 ports
Do you have any advice ou clue for making a (simple) draw of
network device
Antoine Gallavardin
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://sourceforge.net/p/netdisco/mailman/netdisco-users/
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users