Skip to content
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

rackdiag: ascending does not seem to work for multiple racks #48

Open
abravalheri opened this issue Nov 1, 2023 · 0 comments
Open

rackdiag: ascending does not seem to work for multiple racks #48

abravalheri opened this issue Nov 1, 2023 · 0 comments

Comments

@abravalheri
Copy link

Hello, thank you very much for the very useful set of tools.

I am trying to combine the multiple racks setup with ascending, but I am having 2 problems:

1. It seems that I cannot use the ascending attribute inside of a rack block (which is in turn inside of a racdiag block). The following example will exit with an error:
rackdiag {
  rack {
    ascending;
    // define height of rack
    5U;

    // define description of rack
    description = "Tokyo/1234 East";

    // define rack units
    1: UPS [2U];   // define height of unit
    3: DB Server [5kg]  // define weight of unit
    4: Web Server [0.5A]  // define ampere of unit
  }

  rack {
    4U;
    description="Other";

    1: UPS [2U];
    3: DB Server
    4: Web Server
  }
}
 `ERROR: 3,14-3,14: got unexpected token: ';', expected: '='`
2. If I try to add the ascending attribute to the toplevel rackdiag (while keeping the 2 inner rack blocks), the error does not happen, but also the order of the items remains unchanged...

Is there any way to create a diagram with multiple racks in the ascending order?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant