Commit Graph

5 Commits

Author SHA1 Message Date
m-hau
9e6cf8d017 Enforce component properties (#3391)
* Disable additional properties for components

It is not a global option, it needs to be set per-definition.
Enabling it produces a lot of validation errors.

* Update json schema

Add missing fields and value constraints. The `rf_role` enum is
currently not included in the `generated_schema.json` from upstream,
so I "faked" it for now by added it manually.

* Rework custom power source marker

While you could technically have a device that does PoE and serial
console on the same port, this is just one very specific scenario.
Rename the custom property from `poe` to `_is_power_source` to be more
general and better reflect its intention, and properly document it in
the json schema.
Remove the property from device types where it is false, and where it's
unneeded because power-ports exist.

* Fix power draw

In NetBox the PSU modules have a power draw, but not the module-bays you
can put them into; so remove it from those. Plus some minor corrections.

* Fix PoE

Basically fix the casing by renaming from the wrong kebab-case to the
correct snake_case.

* Turn invalid comments into description

Only device types can have `comments`, everything else is limited to
`description`. So turn all invalid comments into descriptions.

* Fix mgmt_only

Console port in NetBox don't have a `mgmt_only` property, because they
are by definition management-only.

* Fix position(s)

Device bays don't have a position, because the child devices are
completely separate and don't share any naming/numbering.

* Miscellaneous fixes

Everything that didn't fit into the prior larger error categories.
Validation now passes again.
2025-08-08 22:10:01 +01:00
Joe Nichols
5c499f5c03 add ServerTech C2WG24SN-4PJN5D and C2XG24SN-4PJN5D (#2178) 2024-06-21 16:43:00 -04:00
EricQuinones1
e4f4eb64c5 Adding Servertech device (#1986)
* Adding Servertech device

* line 185 deleted

* Terminated file & updated PN

* Fixed EOF spacing

* Corrected file

* Your commit message

* Removed not critical items

---------

Co-authored-by: Eric <Eric>
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
2024-05-18 12:17:19 -04:00
Matt Peterson
33ae0c39c7 Add ServerTech C1W08HC-0ABA2BAC (#1865)
* Add ServerTech C1W08HC-0ABA2BAC

* Single phase, fix typo

Device Types does not appear to have a way to encode that ports 1-4 are on "BR1" breaker, and 5-8 are on "BR2" ¯\_(ツ)_/¯

* Remove whitespace

* Remove quoting

---------

Co-authored-by: Jonathan Lassoff <jof@thejof.com>
2024-03-25 13:16:08 -04:00
Joe Nichols
bab64a55b6 add Server Technology PDUs (#1784)
* add server tech 2u horizontal primary and link

* convert link on primary to a console-server-port
2023-12-11 11:22:04 -05:00