diff --git a/netbox/ipam/migrations/0014_ipaddress_status_add_deprecated.py b/netbox/ipam/migrations/0014_ipaddress_status_add_deprecated.py new file mode 100644 index 00000000000..adc8e606c7b --- /dev/null +++ b/netbox/ipam/migrations/0014_ipaddress_status_add_deprecated.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.4 on 2017-01-23 19:10 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ipam', '0013_prefix_add_is_pool'), + ] + + operations = [ + migrations.AlterField( + model_name='ipaddress', + name='status', + field=models.PositiveSmallIntegerField(choices=[(1, b'Active'), (2, b'Reserved'), (3, b'Deprecated'), (5, b'DHCP')], default=1, verbose_name=b'Status'), + ), + ] diff --git a/netbox/ipam/models.py b/netbox/ipam/models.py index c8afc640278..b0500d3d344 100644 --- a/netbox/ipam/models.py +++ b/netbox/ipam/models.py @@ -36,10 +36,12 @@ IPADDRESS_STATUS_ACTIVE = 1 IPADDRESS_STATUS_RESERVED = 2 +IPADDRESS_STATUS_DEPRECATED = 3 IPADDRESS_STATUS_DHCP = 5 IPADDRESS_STATUS_CHOICES = ( (IPADDRESS_STATUS_ACTIVE, 'Active'), (IPADDRESS_STATUS_RESERVED, 'Reserved'), + (IPADDRESS_STATUS_DEPRECATED, 'Deprecated'), (IPADDRESS_STATUS_DHCP, 'DHCP') )