Răsfoiți Sursa

Closes #5980: Add Saf-D-Grid power port, outlet types

jeremystretch 4 ani în urmă
părinte
comite
e849d28276
2 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 1 0
      docs/release-notes/version-2.10.md
  2. 7 0
      netbox/dcim/choices.py

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

@@ -4,6 +4,7 @@
 
 ### Enhancements
 
+* [#5980](https://github.com/netbox-community/netbox/issues/5980) - Add Saf-D-Grid power port, outlet types
 * [#6157](https://github.com/netbox-community/netbox/issues/6157) - Support Markdown rendering for report logs
 * [#6160](https://github.com/netbox-community/netbox/issues/6160) - Add F connector port type
 

+ 7 - 0
netbox/dcim/choices.py

@@ -314,6 +314,8 @@ class PowerPortTypeChoices(ChoiceSet):
     TYPE_USB_MICRO_B = 'usb-micro-b'
     TYPE_USB_3_B = 'usb-3-b'
     TYPE_USB_3_MICROB = 'usb-3-micro-b'
+    # Proprietary
+    TYPE_SAF_D_GRID = 'saf-d-grid'
 
     CHOICES = (
         ('IEC 60320', (
@@ -414,6 +416,9 @@ class PowerPortTypeChoices(ChoiceSet):
             (TYPE_USB_3_B, 'USB 3.0 Type B'),
             (TYPE_USB_3_MICROB, 'USB 3.0 Micro B'),
         )),
+        ('Proprietary', (
+            (TYPE_SAF_D_GRID, 'Saf-D-Grid'),
+        )),
     )
 
 
@@ -509,6 +514,7 @@ class PowerOutletTypeChoices(ChoiceSet):
     TYPE_USB_C = 'usb-c'
     # Proprietary
     TYPE_HDOT_CX = 'hdot-cx'
+    TYPE_SAF_D_GRID = 'saf-d-grid'
 
     CHOICES = (
         ('IEC 60320', (
@@ -604,6 +610,7 @@ class PowerOutletTypeChoices(ChoiceSet):
         )),
         ('Proprietary', (
             (TYPE_HDOT_CX, 'HDOT Cx'),
+            (TYPE_SAF_D_GRID, 'Saf-D-Grid'),
         )),
     )