Parcourir la source

Closes #4854: Add staging and decommissioning statuses for sites

Jeremy Stretch il y a 5 ans
Parent
commit
48576919b2
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 1 0
      docs/release-notes/version-2.8.md
  2. 6 2
      netbox/dcim/choices.py

+ 1 - 0
docs/release-notes/version-2.8.md

@@ -7,6 +7,7 @@
 * [#4805](https://github.com/netbox-community/netbox/issues/4805) - Improve handling of plugin loading errors
 * [#4829](https://github.com/netbox-community/netbox/issues/4829) - Add NEMA 15 power port and outlet types
 * [#4831](https://github.com/netbox-community/netbox/issues/4831) - Allow NAPALM to resolve device name when primary IP is not set
+* [#4854](https://github.com/netbox-community/netbox/issues/4854) - Add staging and decommissioning statuses for sites
 
 ### Bug Fixes
 

+ 6 - 2
netbox/dcim/choices.py

@@ -7,13 +7,17 @@ from utilities.choices import ChoiceSet
 
 class SiteStatusChoices(ChoiceSet):
 
-    STATUS_ACTIVE = 'active'
     STATUS_PLANNED = 'planned'
+    STATUS_STAGING = 'staging'
+    STATUS_ACTIVE = 'active'
+    STATUS_DECOMMISSIONING = 'decommissioning'
     STATUS_RETIRED = 'retired'
 
     CHOICES = (
-        (STATUS_ACTIVE, 'Active'),
         (STATUS_PLANNED, 'Planned'),
+        (STATUS_STAGING, 'Staging'),
+        (STATUS_ACTIVE, 'Active'),
+        (STATUS_DECOMMISSIONING, 'Decommissioning'),
         (STATUS_RETIRED, 'Retired'),
     )