Просмотр исходного кода

Closes #4554: Add HDOT Cx power outlet type

Jeremy Stretch 5 лет назад
Родитель
Сommit
e75c4c012d
2 измененных файлов с 6 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-2.8.md
  2. 5 0
      netbox/dcim/choices.py

+ 1 - 0
docs/release-notes/version-2.8.md

@@ -7,6 +7,7 @@
 * [#3294](https://github.com/netbox-community/netbox/issues/3294) - Implement mechanism for storing user preferences
 * [#4421](https://github.com/netbox-community/netbox/issues/4421) - Retain user's preference for config context format
 * [#4531](https://github.com/netbox-community/netbox/issues/4531) - Retain user's preference for page length
+* [#4554](https://github.com/netbox-community/netbox/issues/4554) - Add ServerTech's HDOT Cx power outlet type
 
 ### Bug Fixes
 

+ 5 - 0
netbox/dcim/choices.py

@@ -424,6 +424,8 @@ class PowerOutletTypeChoices(ChoiceSet):
     TYPE_ITA_M = 'ita-m'
     TYPE_ITA_N = 'ita-n'
     TYPE_ITA_O = 'ita-o'
+    # Proprietary
+    TYPE_HDOT_CX = 'hdot-cx'
 
     CHOICES = (
         ('IEC 60320', (
@@ -487,6 +489,9 @@ class PowerOutletTypeChoices(ChoiceSet):
             (TYPE_ITA_N, 'ITA Type N'),
             (TYPE_ITA_O, 'ITA Type O'),
         )),
+        ('Proprietary', (
+            (TYPE_HDOT_CX, 'HDOT Cx'),
+        )),
     )