Skip to content

Commit

Permalink
Closes netbox-community#16926 Removes USB cable type choices in favor…
Browse files Browse the repository at this point in the history
… of single, generic 'USB' cable
  • Loading branch information
Brian-Chow committed Aug 20, 2024
1 parent 4dd7e6f commit e3812e6
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions netbox/dcim/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,14 +1433,7 @@ class CableTypeChoices(ChoiceSet):
TYPE_SMF_OS2 = 'smf-os2'
TYPE_AOC = 'aoc'
TYPE_POWER = 'power'
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'
TYPE_USB = 'usb'

CHOICES = (
(
Expand Down Expand Up @@ -1473,18 +1466,7 @@ class CableTypeChoices(ChoiceSet):
(TYPE_AOC, 'Active Optical Cabling (AOC)'),
),
),
(
_('USB'), (
(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_USB, _('USB')),
(TYPE_POWER, _('Power')),
)

Expand Down

0 comments on commit e3812e6

Please sign in to comment.