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

Option to reverse the rack numbering #1

Open
Nyanya opened this issue Feb 18, 2013 · 2 comments
Open

Option to reverse the rack numbering #1

Nyanya opened this issue Feb 18, 2013 · 2 comments

Comments

@Nyanya
Copy link

Nyanya commented Feb 18, 2013

Currently the rack maintenance plugin only allows rack numbering starting from the number 1 at the top of the rack, and increases this number downwards.

A feature to reverse rack numbering so that 1 is labelled at the bottom of the rack and increases towards the top of the rack is desirable. If it could be implemented in such a way that servers already labelled in the rack maintenance plugin do not have their positions altered as a result of invoking this switch, that would be great.

@mattpascoe
Copy link
Member

So here is a fix for you.. However it does not handle already defined racks. I imagine that a SQL update could be written, I just dont currently have time to dig into that. At least the ability is now available. If you're good with it, lets close this issue and maybe open another if need be about an update tool..............

@bpothier
Copy link

(Based on the patch from other thread)
Due to how the patch addresses "ascending" numbered racks, the device numbering requires that the top of each device is defined as the location, then the height of the device.
i.e. a 4U device in slot 10 will use slots 10-7, not slots 10-13.
Brian

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

3 participants