<div dir="auto"><div>Hi Will</div><div dir="auto">At present, we don't have ways to avoid Redfish dependency in IPMI suite. We can code like the way you pointed, but it is possible only for some IPMI commands(like power on and off). For all other IPMI commands like event logs, FRU, SDR, DCMI commands we need to depend on Redfish to verify the output.</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">Rahul</div><div dir="auto"><div dir="auto"><br></div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, 23 Sep 2019, 11:13 Will Liang (梁永鉉), <<a href="mailto:Will.Liang@quantatw.com" rel="noreferrer noreferrer" target="_blank">Will.Liang@quantatw.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I use the "openbmc-test-automation" package to test our project.<br>
And I just want to implement the IPMI test case because our platform does not support REDFISH (IPMI only).<br>
But I found that in the IPMI test case, it use the REFISH command as well (eg Redfish power on[0]).<br>
<br>
[0] <a href="https://github.com/openbmc/openbmc-test-automation/blob/2a520ee37c72ea847ca2d6c773493a6dd752c827/ipmi/test_ipmi_sdr.robot#L59" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/openbmc/openbmc-test-automation/blob/2a520ee37c72ea847ca2d6c773493a6dd752c827/ipmi/test_ipmi_sdr.robot#L59</a><br>
<br>
My questions are following:<br>
1. Are there other ways to avoid using the Redfish commands?<br>
2. Is it possible to add parameter(ex:PROTOCOL) on the command line to select the protocol to use?<br>
For example:<br>
- add the new keyword maybe like "Power On".<br>
- and the new keyword "power on" can use the new parameter to choose what protocol be used(default protocol is REDFISH if not set).<br>
- the new keyword like below:<br>
Power On<br>
[Documentation] select the execute protocol.<br>
[Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}<br>
<br>
Run Keyword If '${PROTOCOL}' == 'Redfish'<br>
... Redfish Power On stack_mode=skip quiet=0<br>
... ELSE IPMI Power On stack_mode=skip quiet=0<br>
<br>
BRs<br>
Will<br>
</blockquote></div></div></div>