Coder Social home page Coder Social logo

Comments (5)

jrha avatar jrha commented on July 21, 2024

It would be good to use a tabulation library to render the output, I believe @msmark also demonstrated a wrapper (https://github.com/quattor/aquilon-tools/blob/master/src/bin/aqnet ?) at the Autumn workshop.

from aquilon.

jrha avatar jrha commented on July 21, 2024

Also column -t does a good job (apart from the comments column).

aq show_network --all | column -t

from aquilon.

urbonegi avatar urbonegi commented on July 21, 2024

So the raw formater output does misalign the Network output intentionally (Network name has 0 indentation, then its details have 2 spaces indentation, building details are indented by 4 spaces, then if there would be any static routes, their personality details would be indented by 6 spaces):

Network: very-long-network-name-which-is-ok-cause-it-can-use-all-the-screen-width
  Network Environment: internal
  IP: 127.0.0.1
  Netmask: 255.255.224.0
  Sysloc: xx.xx.xy
  Building: xx
    Fullname: XX
    Address: Planet Earth
    Location Parents: [Organization quattor, Hub xx, Continent xx, Country xx, Campus xx, City xx]
  Side: a
  Network Type: unknown

Could you should an example of wrong alignment, cause I do not see what is wrong here. If you are trying to script around Aquilon broker, you should either use protobuf or csv output format, not raw output.

from aquilon.

jrha avatar jrha commented on July 21, 2024

@urbonegi This looks like the details for a single network, the problem was when printing all networks.

from aquilon.

jrha avatar jrha commented on July 21, 2024

Aha! @gombasg removed the tabular network list functionality in fd08fd7 as part of the IPv6 support.

from aquilon.

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.