Device.face to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-16 21:46:07 -05:00
parent c79c29e769
commit a8db07e0a8
10 changed files with 80 additions and 43 deletions

View File

@@ -66,6 +66,26 @@ class RackStatusChoices(ChoiceSet):
}
#
# Devices
#
class DeviceFaceChoices(ChoiceSet):
FACE_FRONT = 'front'
FACE_REAR = 'rear'
CHOICES = (
(FACE_FRONT, 'Front'),
(FACE_REAR, 'Rear'),
)
LEGACY_MAP = {
FACE_FRONT: 0,
FACE_REAR: 1,
}
#
# Console port type values
#