Closed canteuni closed 1 year ago
Hi, very good idea.
But I think it is not thought far enough. We have to take into account that there are netfn and group ids which have commands with the same id and have to be distinguished between them.
Have a look here: https://github.com/kontron/python-ipmi/blob/master/pyipmi/msgs/registry.py#L48C8-L48C73
what do you think
Oh you're right, I thought that the command id was globally unique but that's not the case. Then I must use a tuple (netfn, cmdid, group_extension)
as identifier, I'll make the changes
Looks good to me. Thank you!
This PR aims to add some command-specific completion code descriptions.
Some descriptions were already written but never used, so I add the corresponding dictionary to the
CompletionCodeError
implementation. This dictionary also needs the corresponding command ID in order to find the description so I add a reference to the command ID in places wherecheck_completion_code
is called and where I'm sure the specific CC descriptions exist for this command.