Comments (5)
Our assumption was that nobody was using that functionality, do you still want topology to support --plot-dir?
It's hilarious :) no, just drop it, i'll generate custom .dot file regarding my L1 network model.
Good luck!
from topology.
nevermind, looks like it already fixed in master branch, i will close this issue
from topology.
Hi @metacoma, Did you notice that the master version does nothing (I mean, no longer makes the actual plot)?
Are you actually using the topology plots it generates? We thought that most people had the --plot-dir
in the command but did not actually use the generated plot, so that is why we left it with no implementation as backwards compatibility temporary measure.
from topology.
@sergiosmcr hello
Did you notice that the master version does nothing
Yep, i read it in changelog. So, I using version from pip
topology==1.17.0
I fixed the bug (it was just a typo in variable name) and then it worked
my topology looks like
[type=switch name="Switch 1"] sw1
[type=switch name="Switch 2"] sw2
[type=switch name="Router 1"] r1
[type=switch name="GPON"] gpon1
[type=host name="hw0076"] hw0076
[type=host name="hw0018"] hw0018
[type=host name="hw0027"] hw0027
[type=host name="hw0406"] hw0406
[type=host name="hw0360"] hw0360
[type=host name="hw9177"] hw9177
[type=host name="hw0443"] hw0443
[type=host name="hwNoname"] hwNoname
[type=host name="hw0343"] hw0343
[type=host name="internet"] internet
[speed=1000] sw1:1 sw1:2 sw2:1 r1:1 r1:2 gpon1:1 gpon1:2 hw0076:1 hw0018:1 hw0027:1 hw0406:1 hw0360:1 hw9177:1 hw0443:1 hwNoname:1 hw0343:1 internet:1
# Links
[linkattr1=20 name=E1000_1] sw1:1 -- sw2:1
[linkattr2=40] r1:2 -- sw1:2
[linkattr2=40] r1:1 -- gpon1:1
[linkattr2=40] internet:1 -- gpon1:2
[linkattr2=40] hw0076:1 -- sw1:3
[linkattr2=40] hw0018:1 -- sw1:4
[linkattr2=40] hw0027:1 -- sw1:5
[linkattr2=40 identifier="Test"] hw0406:1 -- sw1:6
[linkattr2=40] hw0360:1 -- sw1:7
[linkattr2=40] hw9177:1 -- sw1:8
[linkattr2=40] hw0443:1 -- sw1:9
[linkattr2=40] hwNoname:1 -- sw1:10
[linkattr2=40] hw0343:1 -- sw2:2
topology --plot-dir ...
generated the following image
Are you actually using the topology plots it generates?
Well, i need to visualize L1 network layer of my home cluster and was looking for the tool that can do this.
BTW, is there a way to somehow visualize .nml
file ? I googled a bit, but didn't find anything :(
Thank you for your time!
from topology.
We used to rely on ExtendedNMLManager.save_graphviz() to generate the plot depending on the format.You probably are using the default svg
format. That function generates a graphviz file, then uses graphviz dot
executable to convert the file to svg, png or any other format.
The way we used that API can be found here:
Our assumption was that nobody was using that functionality, do you still want topology to support --plot-dir
?
Maybe you can try to implement it in a PR? 🙂 The problem is that now we don't use NML, so implementing it is not that easy.
from topology.
Related Issues (20)
- Exiting the interactive shell does *not* explicitly unbuild the topology HOT 4
- Add a whitelist marker for platform engines HOT 1
- Fix test_id marker to not depend on older pytest version
- Do not show error when history file does not exists
- Should the PExpectShell class handle the pexpect EOF and TIMEOUT exceptions? HOT 1
- Implement a new Services API HOT 1
- Remove pytest-random everywhere and avoid recommending it HOT 1
- Handle decode in ignore mode by default
- Handle step logging transparently HOT 1
- Attribute injection not working when the TOPOLOGY is imported HOT 2
- Add support for sending control characters to PExpectShell
- Pypi isn't updated HOT 3
- Sending "carriage return" breaks logging HOT 1
- Missing search_paths when using topology executable or the pytest plugin
- SZN Parser does not like variables starting with "_" HOT 1
- Adding enviroment parameter support HOT 7
- Need to add support for initial switch login context. HOT 1
- AttributeError: 'Function' object has no attribute 'get_marker' / HOT 2
- Doc no rendering on sphinx > 2.0.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from topology.