Skip to content

Commit 3789342

Browse files
author
Antoine Keranflec'h
committed
feat(vm): add extra status
1 parent 494d410 commit 3789342

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

netbox/virtualization/choices.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class VirtualMachineStatusChoices(ChoiceSet):
3838
STATUS_STAGED = 'staged'
3939
STATUS_FAILED = 'failed'
4040
STATUS_DECOMMISSIONING = 'decommissioning'
41+
STATUS_PAUSED = 'paused'
42+
STATUS_SUSPENDED = 'suspended'
4143

4244
CHOICES = [
4345
(STATUS_OFFLINE, _('Offline'), 'gray'),
@@ -46,4 +48,6 @@ class VirtualMachineStatusChoices(ChoiceSet):
4648
(STATUS_STAGED, _('Staged'), 'blue'),
4749
(STATUS_FAILED, _('Failed'), 'red'),
4850
(STATUS_DECOMMISSIONING, _('Decommissioning'), 'yellow'),
51+
(STATUS_PAUSED, _('Paused'), 'orange'),
52+
(STATUS_SUSPENDED, _('Suspended'), 'purple'),
4953
]

0 commit comments

Comments
 (0)