Closes #1865: Add console port and console server port types

This commit is contained in:
Jeremy Stretch
2019-10-30 14:25:55 -04:00
parent e72450ccc2
commit acd5ccccef
13 changed files with 253 additions and 24 deletions

View File

@@ -42,7 +42,10 @@ from .exceptions import MissingFilterException
class DCIMFieldChoicesViewSet(FieldChoicesViewSet):
fields = (
(Cable, ['length_unit', 'status', 'termination_a_type', 'termination_b_type', 'type']),
(ConsolePort, ['connection_status']),
(ConsolePort, ['type', 'connection_status']),
(ConsolePortTemplate, ['type']),
(ConsoleServerPort, ['type']),
(ConsoleServerPortTemplate, ['type']),
(Device, ['face', 'status']),
(DeviceType, ['subdevice_role']),
(FrontPort, ['type']),