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

Add missing generic discrete codes

A large chunk of generic discrete codes had been
skipped.  Rectify the omission and classify the
events.  Some debate could be had around 'non-redundant',
but the intent seems to be a way for a nominally redundant
component to describe a suboptimal state.

Change-Id: I48bbef96b7b6c952bcc940f5bb950962d07507d9
This commit is contained in:
Jarrod Johnson 2015-02-17 13:40:14 -05:00
parent af02266b0b
commit 77aad5f728

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 = {