mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-22 05:12:22 -06:00
Device.face to slug (#3569)
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user