Commit Graph

7 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
k-masters
0eb13b1fa7 Add Eaton Devices-Modules-Images (#1688)
* Add Eaton Tripp-Lite Images

Added images to the following devices

* Tripp-Lite-B064-016-02-IPG
* Tripp-Lite-B096-016
* Tripp-Lite-B096-032
* Tripp-Lite-B097-016
* Tripp-Lite-PDUMH15AT
* Tripp-Lite-PDUMH20HVAT
* Tripp-Lite-SMART1500LCD
* Tripp-Lite-SMART1500RMXL2UA
* Tripp-Lite-SMART2200CRMXL

* Add Eaton Device and Module

Added Eaton Device

* Tripp-Lite PDUMH15NET

Added Eaton Module

* Tripp-Lite WEBCARDLXE

* Fix Power Outlet Label
2023-11-17 12:51:14 -05:00
Daniel W. Anner
c95b166139 Implementing Test Updates (Slugs & File Names) (#1454)
* breaking out tests for easier usage

* refactoring codebase

* Added verification for properly formatted slug and fixed definitions that were incorrect

* Adding new test case to ensure the file name matches either the slug or the part_number

* fixed file names to match proper formatting
2023-07-12 20:00:44 -04:00
Daniel W. Anner
b36c0d7407 Migrate tripp lite to eaton (#1242)
* Migrate tripp lite to eaton

* merge tripplite module to eaton
2023-03-30 09:54:33 -04:00
Daniel W. Anner
f2709fed8b Module-Types - Model Name Fixes (#1063)
* Updated module types to have proper model names

* Updated Aruba module-types so that the model name is accurate

* fixing Broadcom part number

* updated comments to description

* fixed checkpoint model names

* moved generic keystone modules to a generic module folder

* according to FS datasheets, each item has an Item ID (unique part number) and their associated model name

* fixing the other module types

* removed mgmt_false definition

* removed newlines

* removed extra definitions

* fixed description, changed to comments

* fixing fs part numbers to be strings

* removed extra newlines

* Removed extra newlines

* reemoved blank definition
2023-01-20 19:17:02 -05:00
Daniel Anner
dd0f629bfa Ran full pre-commit run -a to fix all formatting issues (#999) 2022-12-27 12:35:52 -05:00
Simon Rommel
e8f8ac5b54 Add Eaton UPS 9PX and related devices/modules (#860)
* device and module types for 9PX, battery module, network card, and sensor

* remove 'null' power allocation from 9PX3000iRT2U

* turn environmental probe into module, add corresponding module slots to UPS

* remove leftover definitions from converting device to module for EMPDT1H1C2
2022-09-02 16:01:45 -05:00