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
Harry
5cb89544bc Fix issues with Ciena modules in Windows (#2406)
* Rename 81(10|14)-12x25G-sfp28.yaml to 8110-8114-12x25G-sfp28.yaml

* Rename 81(10|14)-8x100G-qsfp28.yaml to 8110-8114-8x100G-qsfp28.yaml

* Rename 81(10|14)-2x400G-qsfpdd.yaml to 8110-8114-2x400G-qsfpdd.yaml

* Rename 81(10|14)-2x400G-qsfpdd-macsec.yaml to 8110-8114-2x400G-qsfpdd-macsec.yaml

* Rename 81(10|14)-2x400G-cfp2.yaml to 8110-8114-2x400G-cfp2.yaml

* Rename AC-81(10|14).yaml to AC-8110-8114.yaml

* Rename AC-81(40|90).yaml to AC-8140-8190.yaml

* Rename AC-51(62|70).yaml to AC-5162-5170.yaml

* Rename AC-39(40|60).yaml to AC-3940-3960.yaml

* Rename AC-39(26|30|32)|5142.yaml to AC-3926-3930-3932-5142.yaml

* Rename DC-51(62|70).yaml to DC-5162-5170.yaml

* Update and rename DC-81(10|14).yaml to DC-8110-8114.yaml

* Update and rename DC-81(40|90).yaml to DC-8140-8190.yaml

* Update DC-5162-5170.yaml

* Update AC-8140-8190.yaml

* Update AC-8110-8114.yaml

* Update AC-5162-5170.yaml

* Update AC-3940-3960.yaml

* Update AC-3926-3930-3932-5142.yaml

* Update 8110-8114-8x100G-qsfp28.yaml

* Update 8110-8114-2x400G-qsfpdd.yaml

* Update 8110-8114-2x400G-qsfpdd-macsec.yaml

* Update 8110-8114-2x400G-cfp2.yaml

* Update 8110-8114-12x25G-sfp28.yaml
2024-10-25 12:46:07 -04:00
Jeff Groom
0a06a15d78 Ciena Devices (#2331)
* 8110

* weight fix

* fix comments

* add image

* 8110 rear image

* fix draw

* module slugs

* more devices

* add and fix

* 8112s

* 8112 image

* fix 5131

* formatting

* 5130 specs

* 5142 power modules

* 51xx

* lint

* lint

* 5162

* 5164

* 516x

* modules

* 8110

* 8114

* 8140

* 8180

* 8180

* 8190

* lint

* front-to-rear

* add calient

* add image

* more images

* images

* 5131 image

* 5142 image

* images

* image replacement

* 40 and 42

* lint and rename

* file renames

* renames

* renames

* modules

* renames

* renames

* add Waveserver 5

* lint

* image names

* renames

* cp consoles

* rename

* ws5 ps

* add waveserver ai

* 5162 image

* add rls

* 8140 image

* fix calient height

* add 8192

* add some els

* add panduit covers

* 3806 enclosure

* lint

* no power on enclosure

* add typical draw

* weight and draw

* weight and draw

* add ws weights

* fix ws5 weight

* calient weight

* more weights

* fix allocated_draw naming

* 3806 power

* power

* more power

* fix lint

* fix test

* requested diagram changes

* json to yml

* remove json

* remove json

* prune parent/childs

* remove panduit

* add 3984

* fix ps

* file renames

* Update 3806.yaml

* Update 3940.yaml

added airflow

* resolve PR convos

* fix module position

---------

Co-authored-by: Harry <Harry@cadby.co.uk>
2024-10-22 21:50:14 +01:00