* 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.
* Add front image for `US-16-150W`
And airflow
* Add front image for `ubiquiti-unifi-switch-48-gen1`
And update airflow.
* Add front image for `ubiquiti-unifi-switch-16-xg`
And adjust the airflow
* nit consistent formatting
:D
* replace smaller webp with bigger png
same resolution, though.
FWIW, netbox supports webp
---------
Co-authored-by: Karl Quinsland <contact@kquinsland.com>
* Feat - two new variants of the Unifi G3 camera line
The Bullet and Pro versions are similar to the flex.
* lint, nit - remove LSP directive for schema
Not sure why this is being applied to some files, not others.
In any case, may be worth re-considering the "don't add validation/linting/type-check hints" policy :(.
---------
Co-authored-by: Karl Quinsland <contact@kquinsland.com>
* Add Ubiquiti U7 Pro XG and U7 Pro XGS device types
- Added U7 Pro XG device type (Wi-Fi 7, 10GbE) with image
- Added U7 Pro XGS device type (Wi-Fi 7, 10GbE, spectral scanning) with image
- Created YAML files for device type definitions
* Reduced comments section, fixed weight of U7 Pro XG
* Crop images
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* Add Ubiquiti UACC-PoE++-10G device type
- Added UACC-PoE++-10G device type (PoE++, 10GbE) with image
- Created YAML file for device type definition
* Crop images
* Reduced comments section
* Add G3-Flex and G5-Flex Ubiquiti cameras
* fix link
---------
Co-authored-by: Daniel Bohnhardt <db@move-elevator.de>
Co-authored-by: Harry <Harry@cadby.co.uk>
* - Add HP Z420
- Add HP EliteDesk 800 G2 Mini
- Add HP EliteDesk 800 G5 Mini
- Add HP EliteDesk 800 G9 Mini
* adding and declaring images for UniFi Security Gateway Pro
* Delete device-types/HP/HP-EliteDesk-800-G2-Mini.yaml
removing duplicate
* Delete device-types/HP/HP-EliteDesk-800-G5-Mini.yaml
* Delete device-types/HP/HP-EliteDesk-800-G9-Mini.yaml
* Delete device-types/HP/HP-Z420.yaml
* Removing HP images per @harryajc's request.
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* 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>
* 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.
* 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
* 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
* Add Ubiquiti INS-3AF-O-G PoE adapter
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
* Update INS-3AF-O-G.yaml
Fixed slug
---------
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>