Skip to content

Commit 9d0457f

Browse files
authored
Add Brazilian power outlet standard to choices.py (#13012)
* Add Brazilian power outlet standard to choices.py * Eliminate possible name conflict * Rename group and add IEC 60906-1 plug type * Update choices.py Add Brazilian power port standard
1 parent 2aa51d0 commit 9d0457f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

netbox/dcim/choices.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ class PowerPortTypeChoices(ChoiceSet):
318318
TYPE_IEC_3PNE4H = 'iec-60309-3p-n-e-4h'
319319
TYPE_IEC_3PNE6H = 'iec-60309-3p-n-e-6h'
320320
TYPE_IEC_3PNE9H = 'iec-60309-3p-n-e-9h'
321+
# IEC 60906-1
322+
TYPE_IEC_60906_1 = 'iec-60906-1'
323+
TYPE_NBR_14136_10A = 'nbr-14136-10a'
324+
TYPE_NBR_14136_20A = 'nbr-14136-20a'
321325
# NEMA non-locking
322326
TYPE_NEMA_115P = 'nema-1-15p'
323327
TYPE_NEMA_515P = 'nema-5-15p'
@@ -429,6 +433,11 @@ class PowerPortTypeChoices(ChoiceSet):
429433
(TYPE_IEC_3PNE6H, '3P+N+E 6H'),
430434
(TYPE_IEC_3PNE9H, '3P+N+E 9H'),
431435
)),
436+
('IEC 60906-1', (
437+
(TYPE_IEC_60906_1, 'IEC 60906-1'),
438+
(TYPE_NBR_14136_10A, '2P+T 10A (NBR 14136)'),
439+
(TYPE_NBR_14136_20A, '2P+T 20A (NBR 14136)'),
440+
)),
432441
('NEMA (Non-locking)', (
433442
(TYPE_NEMA_115P, 'NEMA 1-15P'),
434443
(TYPE_NEMA_515P, 'NEMA 5-15P'),
@@ -553,6 +562,10 @@ class PowerOutletTypeChoices(ChoiceSet):
553562
TYPE_IEC_3PNE4H = 'iec-60309-3p-n-e-4h'
554563
TYPE_IEC_3PNE6H = 'iec-60309-3p-n-e-6h'
555564
TYPE_IEC_3PNE9H = 'iec-60309-3p-n-e-9h'
565+
# IEC 60906-1
566+
TYPE_IEC_60906_1 = 'iec-60906-1'
567+
TYPE_NBR_14136_10A = 'nbr-14136-10a'
568+
TYPE_NBR_14136_20A = 'nbr-14136-20a'
556569
# NEMA non-locking
557570
TYPE_NEMA_115R = 'nema-1-15r'
558571
TYPE_NEMA_515R = 'nema-5-15r'
@@ -657,6 +670,11 @@ class PowerOutletTypeChoices(ChoiceSet):
657670
(TYPE_IEC_3PNE6H, '3P+N+E 6H'),
658671
(TYPE_IEC_3PNE9H, '3P+N+E 9H'),
659672
)),
673+
('IEC 60906-1', (
674+
(TYPE_IEC_60906_1, 'IEC 60906-1'),
675+
(TYPE_NBR_14136_10A, '2P+T 10A (NBR 14136)'),
676+
(TYPE_NBR_14136_20A, '2P+T 20A (NBR 14136)'),
677+
)),
660678
('NEMA (Non-locking)', (
661679
(TYPE_NEMA_115R, 'NEMA 1-15R'),
662680
(TYPE_NEMA_515R, 'NEMA 5-15R'),

0 commit comments

Comments
 (0)