Code Monkey home page Code Monkey logo

Comments (5)

metacoma avatar metacoma commented on September 27, 2024 1

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.

metacoma avatar metacoma commented on September 27, 2024

nevermind, looks like it already fixed in master branch, i will close this issue

from topology.

sergiosmcr avatar sergiosmcr commented on September 27, 2024

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.

metacoma avatar metacoma commented on September 27, 2024

@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
topology

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.

sergiosmcr avatar sergiosmcr commented on September 27, 2024

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:
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.