Repository navigation
How to track PDU breaker feeds #23258
Unanswered
coloHsq
asked this question in
Help Wanted!
Replies: 1 comment 1 reply
|
The method we use is largely held together by our standard conventions around modeling a PDU where we the label and feed leg of the power outlets in the device type. It ends up looking something like this | name | label | feed leg | The label groups all the outlets that are on the same breaker and the feed leg denotes what legs of the 3 phase power the breaker is on. A = L1L2 B = L2L3 C = L3L1 Then for tracking the breaker limits within the PDU, we use a custom field on the PDU type to set that. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
In the past few days I've been trying to wrap my head around this problem, how can I track PDU breakers in a simple, convenient and explicit way ?
I'm doing some analysis on rack's power distribution, and one thing I want to be able to verify is
To do this, i need to be able to "assign" a bank to each PowerOutlet.
For most of the PDU we use it's as simple as port < 13 --> breaker bank 1 | port > 12 --> breaker bank 2 written in the code, but, there's also three-phase PDUs that have up to 6 banks and it doesn't feel nice to manage that kind of subdivision that way.
For sure I can rename all the ports with a naming convention like bank_number.port_number but I already have enough people misreading without that...
I tried the Modules approach, the finished implementation has everything that's needed, profiles to define the breaker size, and module bays to explicitly assign PowerOutlets to a bank, but it's bit too sluggish for me.
Each bank needs its own module (there's no way to have sequential port numbers across multiple module bays), and there's no way to pre-assign ModuleTypes to DeviceTypes.
This significantly lengthens the instantiation process compared to simply create Device from a complete DeviceType.
I thought of using custom fields paired with django signals, but I'm facing a similar problem, I can add one to PowerOutlet model to write the bank number, but PowerOutletTemplate (and components templates in general) doesn't support custom fields, so again there's additional steps involved other than creating a Device.
if any of you have any ideas on how to solve this problem it's more than welcome, or maybe there's room to issue a feature request.
P.S. Maybe I'm a bit too pretentious, I know it's a niche case, but I have my own philosophy on how things should behave in terms of process streamlining.
All reactions