-
Notifications
You must be signed in to change notification settings - Fork 133
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
Hope someone can help how I can make diagram (its not an issue , just seeking guidance) #16
Comments
Try using jinja2 with python, in jinja2 you can create a template Here's an example I'm using, still work in progress:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, thank you to the creator for making such an awesome tool for the community (just brilliant).
I am sorry that I have opened this ticket as the issue, but it's not an issue, I am looking for help (maybe someone can change the category as I am new to GitHub).
I have read the readme section in the github and I understand that to draw the diagram I have to write the lines in dot(graphiz format) for the tool to draw the topology.
Here is what I was trying to do, I have a network of 100 odd cisco devices, so I was thinking of doing SNMP walk and write a script that will do show cdp neighbor and then give me an output which will have .csv or .txt file, that will give me the following information
example
Parent Device Name Parent Device Port No. Child Device Name Child Device Port No.
Cisco SW Gi 0/1 Cisco Router Gi 0/2
so imagine this list will have 1000 of entries due to the number of devices.
so is there a way that I can convert or make these lines in below format as shown in the editor of http://go.drawthe.net/
example
wwrt001: &wwrt001 {<<: *cisco, icon: "router"}
wwrt002: &wwrt002 {<<: *cisco, x: "+1", icon: "router"}
wwrt003: &wwrt003 {<<: *cisco, x: "-1", y: "+1", icon: "nexus5000"}
I hope someone can help me to understand how I can convert the output which I have collected from the devices ( and sorted out in tabular format), I would like to convert this .csv/.txt or any file in the format that I can past on drawthe.net tool to make the topologies
Any help and guidance will be highly appreciated.
Many thanks in advance.
Jessica B
The text was updated successfully, but these errors were encountered: