You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,48 @@ The following fields may **optionally** be declared:
103
103
For further detail on these attributes and those listed below, please reference the
104
104
[schema definitions](schema/) and the [Component Definitions](#component-definitions) below.
105
105
106
+
## Rack Type Definitions
107
+
108
+
Each definition **must** include at minimum the following fields:
109
+
110
+
- `manufacturer`: The name of the manufacturer which produces this rack type.
111
+
- Type: String
112
+
- `model`: The model number of the rack type. This must be unique per manufacturer.
113
+
- Type: String
114
+
- `slug`: A URL-friendly representation of the model number. Like the model number, this must be unique per
115
+
manufacturer. All slugs should have the manufacturers name prepended to it with a dash, please see the example below.
116
+
- Type: String
117
+
- Pattern: `"^[-a-z0-9_]+$"`. Must match the following characters: `-`, Lowercase `a` to `z`, Numbers `0` to `9`.
118
+
- `form_factor`: The form factor of the rack type. This is used to indicate the physical characteristics of the rack, such as whether it is a 4-post frame or a wall-cabinet etc.
- `width`: The width of the rack type in zoll/inches. This is used to indicate the physical width of the rack, such as whether it is a 19" or 23" rack.
122
+
- Type: Integer
123
+
- :test_tube: Example: `width: 19`
124
+
- `u_height`: The height of the rack type in rack units.
125
+
- Type: Number
126
+
- :test_tube: Example: `u_height: 42`
127
+
- `starting_unit`: The unit number at which the rack starts. This is used to indicate the starting unit number of the rack, such as whether it starts at 1 or 42. The starting unit is normally defined from bottom to top, with the bottom unit being 1.
128
+
- Type: Number
129
+
- :test_tube: Example: `starting_unit: 1`
130
+
131
+
:test_tube: Example:
132
+
133
+
```yaml
134
+
manufacturer: Startech
135
+
model: 4 Post 42U
136
+
slug: startech-4postrack42
137
+
form_factor: 4-post-frame
138
+
width: 19
139
+
u_height: 42
140
+
starting_unit: 1
141
+
```
142
+
143
+
**Note: We are asking that all new racks also include the following optional fields: `outer_width`, `outer_height`, `outer_depth`, `outer_unit`, `weight`, `max_weight`, `weight_unit`, `mounting_depth`, and `desc_units`.**
144
+
145
+
For further detail on these attributes and those listed below, please reference the
device.failureMessage=f'{device.file_path} file name is invalid. Must be either the model "{device._slug_model}" or part_number "{device.part_number} / {device._slug_part_number}"'
0 commit comments