Skip to content

Commit

Permalink
Closes netbox-community#16926 Changes USB cable types to reflect vers…
Browse files Browse the repository at this point in the history
…ions-physical differences. Updated human readable labels on USB front/rear ports to match style of usb console ports
  • Loading branch information
Brian-Chow committed Aug 14, 2024
1 parent 4778404 commit 4dd7e6f
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions netbox/dcim/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,14 +1385,14 @@ class PortTypeChoices(ChoiceSet):
(
_('USB'),
(
(TYPE_USB_A, 'USB-A'),
(TYPE_USB_B, 'USB-B'),
(TYPE_USB_C, 'USB-C'),
(TYPE_USB_MINI_A, 'USB-Mini-A'),
(TYPE_USB_MINI_B, 'USB-Mini-B'),
(TYPE_USB_MICRO_A, 'USB-Micro-A'),
(TYPE_USB_MICRO_B, 'USB-Micro-B'),
(TYPE_USB_MICRO_AB, 'USB-Micro-AB'),
(TYPE_USB_A, 'USB Type A'),
(TYPE_USB_B, 'USB Type B'),
(TYPE_USB_C, 'USB Type C'),
(TYPE_USB_MINI_A, 'USB Mini A'),
(TYPE_USB_MINI_B, 'USB Mini B'),
(TYPE_USB_MICRO_A, 'USB Micro A'),
(TYPE_USB_MICRO_B, 'USB Micro B'),
(TYPE_USB_MICRO_AB, 'USB Micro AB'),
),
),
(
Expand Down Expand Up @@ -1433,14 +1433,14 @@ class CableTypeChoices(ChoiceSet):
TYPE_SMF_OS2 = 'smf-os2'
TYPE_AOC = 'aoc'
TYPE_POWER = 'power'
TYPE_USB_A = 'usb-a'
TYPE_USB_B = 'usb-b'
TYPE_USB_C = 'usb-c'
TYPE_USB_MINI_A = 'usb-mini-a'
TYPE_USB_MINI_B = 'usb-mini-b'
TYPE_USB_MICRO_A = 'usb-micro-a'
TYPE_USB_MICRO_B = 'usb-micro-b'
TYPE_USB_MICRO_AB = 'usb-micro-ab'
TYPE_USB_1 = 'usb-1'
TYPE_USB_1_1 = 'usb-1-1'
TYPE_USB_2 = 'usb-2'
TYPE_USB_3 = 'usb-3'
TYPE_USB_3_1 = 'usb-3-1'
TYPE_USB_3_2 = 'usb-3-2'
TYPE_USB_4 = 'usb-4'
TYPE_USB_4_2 = 'usb-4-2'

CHOICES = (
(
Expand Down Expand Up @@ -1475,14 +1475,14 @@ class CableTypeChoices(ChoiceSet):
),
(
_('USB'), (
(TYPE_USB_A, 'USB-A'),
(TYPE_USB_B, 'USB-B'),
(TYPE_USB_C, 'USB-C'),
(TYPE_USB_MINI_A, 'USB-Mini-A'),
(TYPE_USB_MINI_B, 'USB-Mini-B'),
(TYPE_USB_MICRO_A, 'USB-Micro-A'),
(TYPE_USB_MICRO_B, 'USB-Micro-B'),
(TYPE_USB_MICRO_AB, 'USB-Micro-AB'),
(TYPE_USB_1, 'USB 1.0'),
(TYPE_USB_1_1, 'USB 1.1'),
(TYPE_USB_2, 'USB 2.0'),
(TYPE_USB_3, 'USB 3.0'),
(TYPE_USB_3_1, 'USB 3.1'),
(TYPE_USB_3_2, 'USB 3.2'),
(TYPE_USB_4, 'USB 4'),
(TYPE_USB_4_2, 'USB 4 2.0'),
),
),
(TYPE_POWER, _('Power')),
Expand Down

0 comments on commit 4dd7e6f

Please sign in to comment.