* 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.
* feat add supermicro `MBD-X10SRH-CF` and `CSE-847BE1C-R1K23LPB`
Chassis comes with images
* fix - nit/fmt/lint
All hail the `autofmt` :D
---------
Co-authored-by: Karl Quinsland <contact@kquinsland.com>
Co-authored-by: Harry <Harry@cadby.co.uk>
* Create SuperServer-4028GR-TRT
Added SuperServer-4028GR-TRT - Part number "SYS-4028GR-TRT07-NC24B" to the Netbox Library
* Added forgotten .yml extension to SuperServer-4028GR-TRT
* Updated Slug
Wrong slug used, another superserver was used as a base for this one
* Added Supermicro AS-2124BT-HTR and its elevation-images
* Needed an underscore, and not a dash, for the image parameter
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* Added Supermicro SuperServer 6029P-TR and its elevation-images
* Maybe a good idea to set image to true, when I add images, yeah?
* Maybe also properly include the slug in the image name next time...?
* Add Supermicro AS-1115SV-WTNRT
* Add new device type for server Supermicro AS-1115SV-WTNRT
* Add elevation images for AS-1115SV-WTNRT
* * Edit Supermicro AS-1115SV-WTNRT
* Remove power section
* Add power supply module bays
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* added sse-x3348tr
* newline character
* Update SSE-X3348TR.yaml
Converted power ports to module bays
---------
Co-authored-by: Ryan Merolle <ryanmerolle@users.noreply.github.com>
Co-authored-by: Harry <Harry@cadby.co.uk>
* Add Supermicro SuperServer 5039MC-H8TRF and its motherboard MBD-X11SCD-F
* Added context to the motherboard/server
* Added context to the motherboard/server
* Fixed slug by removing dash
* Removed motherboard interfaces as these should from module AOC-CGP-i2 in the MLP slot
* Update SYS-5039MC-H8TRF.yaml
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* Add Supermicro SuperServer 5039MC-H8TRF and its motherboard MBD-X11SCD-F
* Added context to the motherboard/server
* Added context to the motherboard/server
* Fixed slug by removing dash
* Added SuperServer 5039MS-H8TRF and its node/motherboard X11SSD-F
* Deleted previous files I added by accident
* Update SYS-5039MS-H8TRF.yaml
Converted power ports to module bays
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* Add Supermicro SuperServer 1029U-TR4T https://www.supermicro.com/products/system/1U/1029/SYS-1029U-TR4T.cfm
* Removed ""-" from PCI-e description
* Removed PCI-e for testing checking script
* Removed Interfaces for testing checking script
* Removed even more portions to test the checking script
* Back to full config
* Add brackets around the model in the comments field
* Removed apostrophes and brackets
* Update SYS-1029U-TR4T.yaml
Converted power ports to module bays
---------
Co-authored-by: Harry
* Added Supermicro SuperServer SYS-110P-WTR
* Removed duplicate PCIe text in the M.2 module-bay description field
* Update SYS-110P-WTR.yaml
converted power ports to module bays
---------
Co-authored-by: Harry
* Added Supermicro Superserver SYS-5019P-WTR
* Removed some blank spaces
* Update SYS-5019P-WTR.yaml
Moved power ports to module bays
* Create PWS-504P-1R.yaml
Added 500W PSU for sys-5019P-WTR
---------
Co-authored-by: Harry
* Add Supermicro A+ Server 2124BT-HNTR and motherboard H12DST-B
* Modified incorrect PCI-E name for a motherboard module-bay
* Changed node position-indication and name from alphabetical ABCD to numerical 1234
* Update AS-2124BT-HNTR.yaml
Moved Power ports to module bays as they are removable PSUs
---------
Co-authored-by: Harry <Harry@cadby.co.uk>
* 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!
* Add Supermicro 1018R-WC0R
* Fixed weight unit
* Change: Moved PSU as a module
* Fixed position name
* Fixed string validation
* Update PWS-706P-1R.yml
---------
Co-authored-by: kennethdammyr <kenneth.dammyr@nrk.no>
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
* 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 server Supermicro SYS-5018D-MTF
* Update SYS-5018D-MTF.yaml
* Update and rename SYS-5018D-MTF.yaml to SuperServer-5018D-MTF.yaml
---------
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>