Modfied ipmi_raw_cmd_table.py raw commands.
Changed raw command in data/ipmi_raw_cmd_table.py file to form
IPMI raw command using the ${CHANNEL_NUMBER} defined in
the resource.robot
Tested:
Ran robot ipmi/test_ipmi_kcs.robot
robot ipmi/test_ipmi_lanplus.robot
Change-Id: I8b382f432d13a267aef86707d4d05acbe5d84d78
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
diff --git a/data/ipmi_raw_cmd_table.py b/data/ipmi_raw_cmd_table.py
index eecb83e..38ccc1f 100644
--- a/data/ipmi_raw_cmd_table.py
+++ b/data/ipmi_raw_cmd_table.py
@@ -6,6 +6,9 @@
- Define IPMI interface index, commands and expected output.
"""
+
+from robot.libraries.BuiltIn import BuiltIn
+
# The currently supported cipher list.
# Refer:
# openbmc/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipe
@@ -219,15 +222,21 @@
"lan_parameters": {
"get_ip": [
# raw command
- "0x0c 0x02 0x01 0x03 0 0",
+ "0x0c 0x02 0x"
+ + BuiltIn().get_variable_value("${CHANNEL_NUMBER}")
+ + " 0x03 0 0",
],
"get_ip_src": [
# raw command
- "0x0c 0x02 0x01 0x04 0 0",
+ "0x0c 0x02 0x"
+ + BuiltIn().get_variable_value("${CHANNEL_NUMBER}")
+ + " 0x04 0 0",
],
"get_dot1q": [
# raw command
- "0x0c 0x02 0x01 0x14 0 0",
+ "0x0c 0x02 0x"
+ + BuiltIn().get_variable_value("${CHANNEL_NUMBER}")
+ + " 0x14 0 0",
],
},
"SDR_Info": {