Commit Graph

4 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
Juri Kononov
894b0e4cc4 Added Teltonika RUTX09 and RUT955 (#2054)
* RUT955 spec

added RUT955 spec

* fix unit size typo

fix unit size typo

* changing to standart port types

changing to standart port types, for now

* RUTX09 added

Added specification of RUTX09

* Update RUTX09.yaml

fixed wrong interface type for 1Gb LAN/WAN

* Update RUT955.yaml

* Update RUTX09.yaml

* Update RUT955.yaml

clarifications on RUT955

* Revert "Regenerate master slug list after successful PR merge"

This reverts commit eceea7431d.

* Revert "Ciena - support for 3903 and fix 3928 airflow (#1965)"

This reverts commit 7960c0344f.

* Revert "Regenerate master slug list after successful PR merge"

This reverts commit 91531cc1cb.

* Reapply "Regenerate master slug list after successful PR merge"

This reverts commit c9fc60cd263b63d868f72a7cad15ff2ebd58ef7d.

* Revert "Main"

* fix unit size typo

* adopted changes

* specified port as console

---------

Co-authored-by: S23344 <jurikononov@S23344.local>
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
2024-08-22 12:23:58 -04:00
Alexey Masolov
28aafab52c Add Teltonika TRB500 device type (#1987)
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
2024-04-03 11:54:52 -04:00
Wago Louage
ca23614e23 Added Teltonika RUT240 device type (#1216)
* Added Teltonika RUT240 device type

* Update RUT240.yaml

Added weight. Fixed slug. Removed un-nessecary definitions

---------

Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
2023-03-30 10:15:07 -04:00