Add a new power connector type for selection in netbox: CEE 7/16, Type C (also known as Europlug).
This commit is contained in:
Oliver 2021-08-27 21:26:01 +02:00 committed by GitHub
parent 13e633778a
commit 893260a2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,6 +246,8 @@ class ConsolePortSpeedChoices(ChoiceSet):
class PowerPortTypeChoices(ChoiceSet):
# CEE 7/16
TYPE_CEE_7_16_TYPE_C = 'cee-7-16-type-c'
# IEC 60320
TYPE_IEC_C6 = 'iec-60320-c6'
TYPE_IEC_C8 = 'iec-60320-c8'
@ -346,6 +348,9 @@ class PowerPortTypeChoices(ChoiceSet):
TYPE_HARDWIRED = 'hardwired'
CHOICES = (
('CEE 7/16', (
(TYPE_CEE_7_16_TYPE_C, 'CEE 7/16 Europlug'),
)),
('IEC 60320', (
(TYPE_IEC_C6, 'C6'),
(TYPE_IEC_C8, 'C8'),