1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

26 lines
647 B
Python
Raw Normal View History

2019-12-04 20:40:18 -05:00
from utilities.choices import ChoiceSet
#
# VirtualMachines
#
class VirtualMachineStatusChoices(ChoiceSet):
key = 'VirtualMachine.status'
2019-12-04 20:40:18 -05:00
STATUS_OFFLINE = 'offline'
2020-02-12 22:43:40 -05:00
STATUS_ACTIVE = 'active'
STATUS_PLANNED = 'planned'
2019-12-04 20:40:18 -05:00
STATUS_STAGED = 'staged'
2020-02-12 22:43:40 -05:00
STATUS_FAILED = 'failed'
STATUS_DECOMMISSIONING = 'decommissioning'
2019-12-04 20:40:18 -05:00
CHOICES = [
2021-12-28 20:18:07 -05:00
(STATUS_OFFLINE, 'Offline', 'gray'),
(STATUS_ACTIVE, 'Active', 'green'),
(STATUS_PLANNED, 'Planned', 'cyan'),
(STATUS_STAGED, 'Staged', 'blue'),
(STATUS_FAILED, 'Failed', 'red'),
(STATUS_DECOMMISSIONING, 'Decommissioning', 'yellow'),
]