Vadims06 / topolograph

Topolograph.com is an online project which can visualize OSPF/ISIS topology based on LSDB output from a single network device. Then you can not only see (and check) the shortest path from source to destination, but also see the outcome from link or node failure along the path to the destination.
https://topolograph.com
MIT License
176 stars 23 forks source link

OSPF topology to Drawio #28

Open Vadims06 opened 2 years ago

Vadims06 commented 2 years ago

I though it can be valuable to have an option to export OSPF topology view to Drawio scheme and then to SVG or PNG format. Please comment if you thing the same.

pengembaratemporer commented 1 year ago

newbie comment :

it will be very good if we can save as to drawio or visio.

or ability to modify javascript result to :

thanks.

Vadims06 commented 1 year ago

Hi @pengembaratemporer , thank you for your valuable comments. Node position saving is available, did you try to use square button before reload all nodes and edges?

pengembaratemporer commented 1 year ago

hi @Vadims06 ,

do you think adding IP Address of point to point link is useful ?

Thank You.

BTW, attached is proposed textfsm for ZTE router for ISIS database.

zte_zxr_show_isis_database_verbose.txt

Vadims06 commented 1 year ago

@pengembaratemporer, this issue is designated to Drawio new feature. For adding new vendor is better to create a separate issue. Use huawei_vrp_display_isis_lsdb_verbose.tpl and huawei_vrp_display_isis_lsdb_verbose_stub as an example, so template for stub networks is needed. If you could attach your ISIS LSDB or send me to admin at topolograph.com it would be great, in order I have a chance to test graph building based on new templates.

laimaretto commented 1 year ago

I think that a better approach would be to use an editable format, like graphml. There are potentially to good python libs to obtain a graph in graphml format: pyyed and/or N2G; I like the later better.

Graphml is a standard format to treat graphs. There is a cool diagram program called yEd, also Gephi and I believe Drawio also accepts graphml.

The interesting thing about graphml with, say, yEd, is that you can edit the network offline, pretty much like working with Visio (only better compatibility).

Vadims06 commented 1 year ago

@laimaretto thank you for your valuable feedback. I was going to use N2G package to build and edit a XML-based diagram, I also like it! I bet that Drawio also supports graphml, but anyway it's good point to test diagram visualization in yEd or Gephi as well. Could you please share your use-cases, when you use graphml/drawio - based diagram? From my point of view it would not be convenient much to upload fresh OSPF/IS-IS LSDB and then generate Drawio diagram based on it, because you might want to add additional information (like Building, Floor, Rack number, logical layers) on the diagram once and then see it on a diagram constantly, but from the other side - you might want to keep your diagram updated ( automatically updated ). To tackle it I'm thinking about building API gateway for such static diagram in order to add/update/remove nodes and edges on diagram, but keeping format/layout unchanged. It will also allow to keep the diagram updated if NSM or any other inventory system can send webhooks in case of adding new device or link into the system. What do you think about it?..