Closes #7551: Add UI field to filter interfaces by kind

This commit is contained in:
jeremystretch
2021-10-19 15:57:02 -04:00
parent eb4b4a6c8d
commit 73f2f9fc63
3 changed files with 19 additions and 1 deletions

View File

@@ -685,6 +685,18 @@ class PowerOutletFeedLegChoices(ChoiceSet):
# Interfaces
#
class InterfaceKindChoices(ChoiceSet):
KIND_PHYSICAL = 'physical'
KIND_VIRTUAL = 'virtual'
KIND_WIRELESS = 'wireless'
CHOICES = (
(KIND_PHYSICAL, 'Physical'),
(KIND_VIRTUAL, 'Virtual'),
(KIND_WIRELESS, 'Wireless'),
)
class InterfaceTypeChoices(ChoiceSet):
# Virtual