Commit Graph

28 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
4607c0d486 Test Cases: Added VGA denial test case (#2065)
* Adding first revision of the VGA test cases

* Second revision with less repetative code

* Handling case where vga has a number in the naming

* the great VGA purge!
2024-04-03 21:02:47 -04:00
Marc Schulz
79754d84ad Add Avocent ACS5000 Series (#1591)
* Add Avocent ACS5000 Series

* Add Avocent ACS5000 Series

---------

Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
2023-09-06 11:14:00 -04:00
Daniel W. Anner
d0cb58d96e Adding Tests: Device Power (#1463)
* broke component validation out to its own function. Adding logic for validating device power input.

* Added console-port poe true for adapters. Updating devices to add proper power sources.

* Adding switches to allow for tests to properly determine POE status.

* Fixing files with missing power definitions.
2023-07-17 15:23:56 -04: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
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
871fd00893 Adding Vertiv & Avocent MPUIQ-SRL and MPUIQ-VMCHS (#1313) 2023-04-25 12:58:43 -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
Olivier Desnoë
f26a9f72f4 Added and fixed several Avocent device types (#1183)
* added and fixed several Fortinet device types

* added power port type on PS2 (was missing)

* added airflow, weight and prepended slug with avocent

* refined to exact model of the data sheet and added description with link to data sheet

* changed weight format

---------

Co-authored-by: DESNOË Olivier (Canal Plus) <olivier.desnoe@canal-plus.com>
2023-03-10 09:38:18 -05:00
Daniel W. Anner
877c1ca2e1 Import cleanup (#1185)
* After running a full repo import, these came back with errors. Fixes for those errors here

* pre-commit run cleanup
2023-03-09 00:19:45 -05:00
Daniel W. Anner
774810c56d Removed mgmt_only: false, removed extra newlines (#1064) 2023-01-21 01:11:27 -05:00
Michael Klose
879be46758 Fix #616 Unknown properties are ignored during schema validation (#621)
* Fix Unknown properties are ignored during schema validation #616
* Fix misspelled properties in files
2022-01-06 13:37:24 -05:00
Tim Rightnour
c3be9641e9 Avocent/Cyclades PM devices, and DSR2035 (#442)
* Add the Avocent DSR2035 KVM, it's DSR modules, and the full set of PM10/PM20 devices
2021-08-16 22:12:24 -04:00
Ryan Merolle
7b303a5ace YAML Formatting & Validation (#347)
* leverage yamllint in GitHub actions 

* add pre-commits

* validation updates

* Update README.md

* Update CONTRIBUTING.md
2021-02-27 07:25:47 -05:00
mayafox
74bd567f81 additional Extreme, Avocent, & Raritan devices (#291) 2020-12-22 10:55:12 -05:00
Tim Rightnour
fca7b73c33 Add Cyclades/Avocent AlterPath PM10 (#252) 2020-11-09 10:55:43 -05:00
Tim Rightnour
b09a00bc0b Add the Avocent/Cyclades ACS16 (#182) 2020-08-08 22:58:02 -04:00
garbled1
1f791ae051 Add a cyclades TS1000 and an arista 7124SX 2020-03-15 11:33:30 -07:00
Jason Emery
3e66b59be9 Update ACS8048.yaml 2020-02-26 10:24:26 -08:00
Jason Emery
5c20c8ce3c Update ACS8048.yaml 2020-02-25 17:25:45 -08:00
Jason Emery
dccd6ec68d Update ACS8048.yaml 2020-02-16 11:36:22 -08:00
Jason Emery
e6f5f6480f Update ACS8048.yaml 2020-02-16 11:32:59 -08:00
Jason Emery
9a527e7e5b Update ACS8048.yaml 2020-02-16 11:32:07 -08:00
Jason Emery
a1727ba2da Update ACS8048.yaml
Fixed missing interface types
2020-02-16 11:31:39 -08:00
Jason Emery
8e8020be9b Rename ACS8048 to ACS8048.yaml 2020-02-16 11:28:26 -08:00
Jason Emery
1885e70e83 Create ACS8048 2020-02-16 11:25:59 -08:00
garbled1
cbbb4d6bb3 Add Avocent PM3009H 2020-01-18 08:12:20 -07:00