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

16 lines
319 B
Python
Raw Normal View History

2019-11-25 19:23:43 -05:00
from dcim.choices import DeviceStatusChoices
# VirtualMachine statuses (replicated from Device statuses)
VM_STATUS_CHOICES = [
2019-11-25 19:23:43 -05:00
[1, 'Active'],
[0, 'Offline'],
[3, 'Staged'],
]
# Bootstrap CSS classes for VirtualMachine statuses
VM_STATUS_CLASSES = {
0: 'warning',
1: 'success',
3: 'primary',
}