mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 04:12:25 -06:00
Fixes #3930: Fix API rendering of the family field for aggregates
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
from utilities.choices import ChoiceSet
|
||||
|
||||
|
||||
class IPAddressFamilyChoices(ChoiceSet):
|
||||
|
||||
FAMILY_4 = 4
|
||||
FAMILY_6 = 6
|
||||
|
||||
CHOICES = (
|
||||
(FAMILY_4, 'IPv4'),
|
||||
(FAMILY_6, 'IPv6'),
|
||||
)
|
||||
|
||||
|
||||
#
|
||||
# Prefixes
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user