Commit Graph

16 Commits

Author SHA1 Message Date
Juniper46
bed77b1bed Improve Validation and fixed issues based on Issue (#3768)
* Update devicetype.json

* Update moduletype.json

* Update definitions_test.py

* Update device_types.py

* Update devicetype.json

* Update moduletype.json

* Update devicetype.json

* Update HWG-STE.yml

* Update 701BA8PP.yml

* Update WS-C2960C-12PC-L.yaml

* Update snr-ups-onrt-1000-s24-element-ii.yaml

* Update EP-R6.yaml

* Update moduletype.json

* Fixed issues

* Added description limit

---------

Co-authored-by: Harry <harry@cadby.co.uk>
2025-11-27 10:46:51 +00:00
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
Jeff Groom
1aee194ee6 ciena FLA2-10-E8-AC (#3235) 2025-06-15 20:04:49 +01:00
Jason Emery
2fdcbe26c1 Create 3802.yaml (#3133)
* Create 3802.yaml

* Update 3802.yaml

---------

Co-authored-by: Harry <Harry@cadby.co.uk>
2025-05-15 12:03:53 +01:00
Jeff Groom
cf309e7cce add Ciena 3906 (#3100)
update Ciena 3916 console

Co-authored-by: Harry <Harry@cadby.co.uk>
2025-05-05 22:15:07 +01:00
Neutrinx
2c3f079f42 Adding Cisco and Ciena Device types for 3916 and N540 models (#2527)
* Upload Ciena Files

* Upload Cisco Files

* Rename 170-3928-901.yaml to 3928-dc.yaml

Set files names to follow same naming as all other ciena devices

---------

Co-authored-by: Harry <Harry@cadby.co.uk>
2024-11-26 21:44:00 +00: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
Chabert Loïc
7960c0344f Ciena - support for 3903 and fix 3928 airflow (#1965)
Co-authored-by: loic.chabert <loic.chabert@jaguar-network.com>
2024-03-28 14:29:32 -04:00
Daniel W. Anner
a1284a34c0 Filename fixes (#1378)
* Migrating files with underscores to dashes

* fixing file names
2023-05-22 18:15:06 -04:00
Daniel W. Anner
7ab7852a3b Slug Migration (#1375)
* Migrated device slugs for 3com

* Migrated device slugs for A10

* migrating manufacturers slugs

* Migrated device slugs for AVM

* Migrated device slugs for Avocent

* Migrated device slugs for Brocade

* Migrated device slugs for Calix

* Migrated device slugs for Checkpoint

* Migrated device slugs for more Checkpoint files

* Migrated device slugs for Ciena

* Migrated device slugs for Citrix

* Migrated device slugs for Colable

* Migrated device slugs for Corning

* Migrated device slugs for CryptoPro

* Migrated device slugs for CyberPower

* Migrated device slugs for Datacom

* Migrating slug definition for manufacturer Deciso

* Migrating slug definition for manufacturer Dell

* Migrating slug definition for manufacturer Extreme Networks

* Migrating slug definition for manufacturer F5

* Migrating slug definition for manufacturer Fortinet

* Migrating slug definition for manufacturer FS

* Migrating slug definition for manufacturer Generic

* Migrating slug definition for manufacturer Huawei

* Migrating slug definition for manufacturer LANCOM

* Migrating slug definition for manufacturer Lenovo

* Migrating slug definition for manufacturer Mikrotik

* Migrating slug definition for manufacturer Opengear

* Migrating slug definition for manufacturer Palo Alto

* Migrating slug definition for manufacturer Panduit

* Migrating slug definition for manufacturer QNAP

* Migrating slug definition for manufacturer Rockwell Automation

* Migrating slug definition for manufacturer Ubiquiti

* Migrating slug definition for manufacturer Yamaha

* Migrating slug definition for manufacturer WTI

* Migrating slug definition for manufacturers

* Migrating slug definition for manufacturer Rohde & Schwarz

* fixing double slugs and file names

* fixing slug names to match proper format

* fixing slug names to match proper format

* fixing slugs to match proper format

* fixing slugs to match proper format for Nokia. Also fixed file names for elevation images.

* fixing slugs to match proper format

* fixing slugs to match proper format

* fixing slugs to match proper format for manufacturer Cisco

* fixing slugs to match proper format for manufacturer MikroTik

* fixing slugs to match proper format for manufacturer Ubiquiti

* adding sloppy script used to migrate files
2023-05-22 16:38:34 -04:00
Daniel W. Anner
1ddaab3951 Tests: Remove uppercase from slug (#1227)
* Removed uppercase from devicetype schema slug definition. Fixed incorrect device slugs

* Update CISCO2951_K9.yaml

* Rename CISCO2951_K9.yaml to 2951-K9.yaml
2023-03-25 11:45:15 -04:00
Daniel Anner
dd0f629bfa Ran full pre-commit run -a to fix all formatting issues (#999) 2022-12-27 12:35:52 -05:00
Jarred
265ec30fd8 Adding Ciena 3928 (#810) 2022-05-27 08:50:03 -04:00
Lucas
b1593eb8b6 Added device type definitions for Ciena 5170 and 5171 (#666)
* Added device type definitions for Ciena 5170 and 5171
2022-02-14 15:29:32 -05:00
grbeneke
5d5503cb52 Adding Ciena 5142 and Ciena 5160 (#617)
* Adding Ciena 5142 and Ciena 5160
2022-01-02 07:34:44 -05:00
grbeneke
2857b546ea Create Ciena 39xx (#611)
* Create 3930.yaml
* Create 3926.yaml
* Update 3930.yaml
* Update 3926.yaml
2021-12-30 15:38:08 -05:00