Initial work on IP ranges

This commit is contained in:
jeremystretch
2021-07-16 09:15:19 -04:00
parent 1c42badabe
commit 80d0a0f150
24 changed files with 994 additions and 20 deletions

View File

@@ -39,7 +39,30 @@ class PrefixStatusChoices(ChoiceSet):
#
# IPAddresses
# IP Ranges
#
class IPRangeStatusChoices(ChoiceSet):
STATUS_ACTIVE = 'active'
STATUS_RESERVED = 'reserved'
STATUS_DEPRECATED = 'deprecated'
CHOICES = (
(STATUS_ACTIVE, 'Active'),
(STATUS_RESERVED, 'Reserved'),
(STATUS_DEPRECATED, 'Deprecated'),
)
CSS_CLASSES = {
STATUS_ACTIVE: 'primary',
STATUS_RESERVED: 'info',
STATUS_DEPRECATED: 'danger',
}
#
# IP Addresses
#
class IPAddressStatusChoices(ChoiceSet):