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
raven
961b0b2a62 Replace all non-ascii characters in the repository. (#2460)
* remove (r)

* remove (tm)

* replace all dashes with ascii -

* replace double quotes

* Replace another type of dash

* replace multiply by x

* replace a third type of dash

* remaining substitutions by hand

* fix line lenght

---------

Co-authored-by: Giotta Simon <simon.giotta@ruag.ch>
Co-authored-by: Harry <Harry@cadby.co.uk>
2024-11-05 21:14:04 +00: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
Vittore Zen
b978c8376d Add ZTE, Supermicro vendors with ZXA10 F8x2 GPON MTU series, Cisco Meraki AP MRxx series, Supermicro model SYS-1019P-WTR (#843)
* Add ZTE vendor and ZXA10 F8x2 GPON MTU series

* Add generic SC-24-double-port Fiber Patch Panel

* fix numbers

* Add some Cisco-Meraki APs

* fix wrong added .pre-commit-config.yaml

* Add ZTE ZXA10 C300

* Added SC-24-port_fiber_patch_panel

* Add basic zte c300 modules: CICK,PRWH and HUVQ

* add ZTE modules

* Rename GPON interface

* Add Supermicro model SYS-1019P-WTR

* Fix typo in com ports type

* Add M4300-12X12F

* Revert to module

* Revision done

* Fix little typos

* Remove empty comments

* Remove empty comments

* Fix type

* Fix type

* Fix rear_port_position

* Fix typo

* Modify type

* Remove USB and VGA

* Remove USB and VGA
2022-08-02 14:33:24 -05:00