From a7b4b4a71d80a85faebe8c726c3fc5a90bd9962b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 2 Jul 2013 13:35:27 -0400 Subject: [PATCH] Add more constants to ipmi constant list Allow use of the more helpful names for net function codes in ipmi specification Change-Id: I3c7bc71e5df1936fbeac6fcc65e144e1b52ea68a --- ipmi/private/constants.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ipmi/private/constants.py b/ipmi/private/constants.py index f6df60ca..efa89b16 100644 --- a/ipmi/private/constants.py +++ b/ipmi/private/constants.py @@ -48,6 +48,16 @@ rmcp_codes = { 0x12: "Illegal or unrecognized parameter", } +netfn_codes = { + "chassis": 0x0, + "bridge": 0x2, + "sensorevent": 0x4, + "application": 0x6, + "firmware": 0x8, + "storage": 0xa, + "transport": 0xc, +} + command_completion_codes = { (7, 0x39): { 0x81: "Invalid user name", @@ -75,7 +85,7 @@ command_completion_codes = { } ipmi_completion_codes = { - 0x0: "Success", + 0x00: "Success", 0xc0: "Node Busy", 0xc1: "Invalid command", 0xc2: "Invalid command for given LUN",