Skip to content

Commit 67c0b83

Browse files
Felix Franzsysradium
authored andcommitted
1 parent 7922270 commit 67c0b83

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

oca/host.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ class Host(PoolElement):
2424
MONITORING_ERROR = 5 # Currently monitoring, previously ERROR
2525
MONITORING_INIT = 6 # Currently monitoring, previously initialized
2626
MONITORING_DISABLED = 7 # Currently monitoring, previously DISABLED
27+
OFFLINE = 8 # OpenNebula 5 allows hosts to be set offline
2728
HOST_STATES = ['INIT', 'MONITORING_MONITORED', 'MONITORED', 'ERROR', 'DISABLED',
28-
'MONITORING_ERROR', 'MONITORING_INIT', 'MONITORING_DISABLED']
29+
'MONITORING_ERROR', 'MONITORING_INIT', 'MONITORING_DISABLED',
30+
'OFFLINE']
2931

3032
SHORT_HOST_STATES = {
3133
'INIT': 'on',
@@ -36,6 +38,7 @@ class Host(PoolElement):
3638
'MONITORING_ERROR': 'on',
3739
'MONITORING_INIT': 'on',
3840
'MONITORING_DISABLED': 'on',
41+
'OFFLINE': 'off',
3942
}
4043

4144
XML_TYPES = {

0 commit comments

Comments
 (0)