blob: 441fe4594c2f739d125e0568d66a9dc6e4d6a455 [file] [log] [blame]
#!/usr/bin/env python
r"""
IPMI raw commands table.
- Define IPMI interface index, commands and expected output.
"""
IPMI_RAW_CMD = {
# Interface name
'power_supply_redundancy':
{
# Command action type
'Get':
[
# raw command, expected output(s), comment
"0x04 0x2d 0x0b",
"00 00 01 00",
"Byte position 3rd LSB e.g. 01 indicates disabled",
"00 00 02 00",
"Byte position 3rd LSB e.g. 02 indicates enabled",
],
'Enabled':
[
# raw command, expected output, comment
"0x04 0x30 0x0b 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00 0x00",
"none",
"Enabled nibble position 6th LSB e.g. 0x2",
],
'Disabled':
[
# raw command, expected output, comment
"0x04 0x30 0x0b 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00",
"none",
"Enabled nibble position 6th LSB e.g. 0x1",
],
}
}