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. Graphical representation of network device (Gallavardin Antoine)
2. Re: Graphical representation of network device (Oliver Gorwits)
3. Re: Graphical representation of network device
(Gallavardin Antoine)
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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 ---
--- Begin Message ---
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/
--
Antoine Gallavardin
INRAE - SIIR Auvergne Rhone Alpes - DSI-INFRA
5 rue de la Doua
CS 20244
69625 Villeurbanne Cedex
+33 4 72 20 86 19 (ligne directe)
+33 6 43 55 13 86
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users