Commit Graph

16 Commits

Author SHA1 Message Date
github-actions[bot]
6aeb4474c1 Regenerate master slug list after successful PR merge (#3415)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
Co-authored-by: Harry <Harry@cadby.co.uk>
2025-08-13 08:33:04 +01: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
github-actions[bot]
8bf976b218 Regenerate master slug list after successful PR merge (#3143)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2025-05-15 12:31:13 -04:00
github-actions[bot]
2a73513a69 Regenerate master slug list after successful PR merge (#3002)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2025-04-11 08:35:26 -04:00
github-actions[bot]
92ed20cd25 Regenerate master slug list after successful PR merge (#2957)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2025-03-22 20:16:30 -04:00
github-actions[bot]
bd5264989a Regenerate master slug list after successful PR merge (#2525)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2024-11-25 19:24:32 -05:00
github-actions[bot]
92ab84a5a0 Regenerate master slug list after successful PR merge (#2389)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2024-10-15 20:09:53 -04:00
github-actions[bot]
041113590f Regenerate master slug list after successful PR merge (#2365)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
2024-10-11 16:42:28 -04:00
github-actions[bot]
450ed6faba Regenerate master slug list after successful PR merge (#2301)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2024-08-23 12:58:52 -04:00
github-actions[bot]
7c1e20371c Regenerate master slug list after successful PR merge (#2165)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2024-06-07 10:28:44 -04:00
github-actions[bot]
8c0af51814 Regenerate master slug list after successful PR merge (#2145)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2024-05-14 15:09:24 -04:00
Daniel W. Anner
70a75ec469 updating test code for new jsonschema version. removing old refresolver that is deprecated. updating schemas. (#2038) 2024-03-27 16:53:45 -04:00
github-actions[bot]
a8171ad2ff Regenerate master slug list after successful PR merge (#2001)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2024-03-20 09:22:26 -04:00
github-actions[bot]
ca2f5d8eb7 Regenerate master slug list after successful PR merge (#1638)
Co-authored-by: NetBox-Bot <info@netboxlabs.com>
2023-09-26 12:18:11 -04:00
Daniel W. Anner
31ef1e6fa7 Update generated_schema.json 2023-09-26 12:14:31 -04:00
Daniel W. Anner
c254f26961 Adding NetBox v3.6.2 generated schema (#1634) 2023-09-26 09:21:43 -04:00