2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 12:17:44 +00:00

Merge "Add missing generic discrete codes"

This commit is contained in:
Jenkins 2015-02-17 18:58:09 +00:00 committed by Gerrit Code Review
commit a0a922309e

View File

@ -196,7 +196,97 @@ discrete_type_offsets = {
'desc': 'Enabled',
'severity': const.Health.Ok,
},
}
},
0xa: {
0: {
'desc': 'Running',
'severity': const.Health.Ok,
},
1: {
'desc': 'In Test',
'severity': const.Health.Ok,
},
2: {
'desc': 'Power off',
'severity': const.Health.Ok,
},
3: {
'desc': 'Online',
'severity': const.Health.Ok,
},
4: {
'desc': 'Offline',
'severity': const.Health.Critical,
},
5: {
'desc': 'Off duty',
'severity': const.Health.Ok,
},
6: {
'desc': 'Degraded',
'severity': const.Health.Critical,
},
7: {
'desc': 'Power Save',
'severity': const.Health.Ok,
},
8: {
'desc': 'Install Error',
'severity': const.Health.Critical,
},
},
0xb: {
0: {
'desc': 'Redundant',
'severity': const.Health.Ok,
},
1: {
'desc': 'Not Redundant',
'severity': const.Health.Warning,
},
2: {
'desc': 'Redundancy degraded',
'severity': const.Health.Warning,
},
3: {
'desc': 'Not Redundant',
'severity': const.Health.Warning,
},
4: {
'desc': 'Not Redundant',
'severity': const.Health.Warning,
},
5: {
'desc': 'Degraded',
'severity': const.Health.Critical,
},
6: {
'desc': 'Redundancy degraded',
'severity': const.Health.Warning,
},
7: {
'desc': 'Redundancy degraded',
'severity': const.Health.Warning,
},
},
0xc: {
0: {
'desc': 'ACPI D0',
'severity': const.Health.Ok,
},
1: {
'desc': 'ACPI D1',
'severity': const.Health.Ok,
},
2: {
'desc': 'ACPI D2',
'severity': const.Health.Ok,
},
3: {
'desc': 'ACPI D3',
'severity': const.Health.Ok,
},
},
}
sensor_type_offsets = {