Fixes #2852: Allow filtering devices by null rack position

This commit is contained in:
Jeremy Stretch
2019-02-21 10:26:31 -05:00
parent 4c3a7b84c1
commit 993e94c00c
3 changed files with 12 additions and 1 deletions

View File

@@ -43,6 +43,12 @@ RACK_STATUS_CHOICES = [
[RACK_STATUS_DEPRECATED, 'Deprecated'],
]
# Device rack position
DEVICE_POSITION_CHOICES = [
# Rack.u_height is limited to 100
(i, 'Unit {}'.format(i)) for i in range(1, 101)
]
# Parent/child device roles
SUBDEVICE_ROLE_PARENT = True
SUBDEVICE_ROLE_CHILD = False