Closes #4540: Add IP address status type for SLAAC

This commit is contained in:
Jeremy Stretch 2020-08-21 13:17:41 -04:00
parent 802af06c0f
commit ed65603632
3 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Each IP address can also be assigned an operational status and a functional role
* Reserved * Reserved
* Deprecated * Deprecated
* DHCP * DHCP
* SLAAC (IPv6 Stateless Address Autoconfiguration)
Roles are used to indicate some special attribute of an IP address; for example, use as a loopback or as the the virtual IP for a VRRP group. (Note that functional roles are conceptual in nature, and thus cannot be customized by the user.) Available roles include: Roles are used to indicate some special attribute of an IP address; for example, use as a loopback or as the the virtual IP for a VRRP group. (Note that functional roles are conceptual in nature, and thus cannot be customized by the user.) Available roles include:

View File

@ -4,6 +4,7 @@
### Enhancements ### Enhancements
* [#4540](https://github.com/netbox-community/netbox/issues/4540) - Add IP address status type for SLAAC
* [#4991](https://github.com/netbox-community/netbox/issues/4991) - Add Python and NetBox versions to error page * [#4991](https://github.com/netbox-community/netbox/issues/4991) - Add Python and NetBox versions to error page
--- ---

View File

@ -41,12 +41,14 @@ class IPAddressStatusChoices(ChoiceSet):
STATUS_RESERVED = 'reserved' STATUS_RESERVED = 'reserved'
STATUS_DEPRECATED = 'deprecated' STATUS_DEPRECATED = 'deprecated'
STATUS_DHCP = 'dhcp' STATUS_DHCP = 'dhcp'
STATUS_SLAAC = 'slaac'
CHOICES = ( CHOICES = (
(STATUS_ACTIVE, 'Active'), (STATUS_ACTIVE, 'Active'),
(STATUS_RESERVED, 'Reserved'), (STATUS_RESERVED, 'Reserved'),
(STATUS_DEPRECATED, 'Deprecated'), (STATUS_DEPRECATED, 'Deprecated'),
(STATUS_DHCP, 'DHCP'), (STATUS_DHCP, 'DHCP'),
(STATUS_SLAAC, 'SLAAC'),
) )