From 1e0b0246094cfc0901ee96f3a21670b299a6c356 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Fri, 9 Dec 2022 16:35:37 -0500 Subject: [PATCH] Closes #10516: Add vertical frame & cabinet rack types --- docs/release-notes/version-3.3.md | 1 + netbox/dcim/choices.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index 75710ae8f..3f05c7977 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -4,6 +4,7 @@ ### Enhancements +* [#10516](https://github.com/netbox-community/netbox/issues/10516) - Add vertical frame & cabinet rack types * [#10748](https://github.com/netbox-community/netbox/issues/10748) - Add provider selection field for provider networks to circuit termination edit view * [#11089](https://github.com/netbox-community/netbox/issues/11089) - Permit whitespace in MAC addresses * [#11119](https://github.com/netbox-community/netbox/issues/11119) - Enable filtering L2VPNs by slug diff --git a/netbox/dcim/choices.py b/netbox/dcim/choices.py index 14ddc9930..fdd0b025f 100644 --- a/netbox/dcim/choices.py +++ b/netbox/dcim/choices.py @@ -55,14 +55,18 @@ class RackTypeChoices(ChoiceSet): TYPE_4POST = '4-post-frame' TYPE_CABINET = '4-post-cabinet' TYPE_WALLFRAME = 'wall-frame' + TYPE_WALLFRAME_VERTICAL = 'wall-frame-vertical' TYPE_WALLCABINET = 'wall-cabinet' + TYPE_WALLCABINET_VERTICAL = 'wall-cabinet-vertical' CHOICES = ( (TYPE_2POST, '2-post frame'), (TYPE_4POST, '4-post frame'), (TYPE_CABINET, '4-post cabinet'), (TYPE_WALLFRAME, 'Wall-mounted frame'), + (TYPE_WALLFRAME_VERTICAL, 'Wall-mounted frame (vertical)'), (TYPE_WALLCABINET, 'Wall-mounted cabinet'), + (TYPE_WALLCABINET_VERTICAL, 'Wall-mounted cabinet (vertical)'), )