IPMI/DCMI: Modified script based on user input
Changes:
- Modified script based on user input
Tested:
- Ran ipmi/ and ipmi/dcmi
Change-Id: Ic9d6e29ae199cffb6009e6718ae499293c319c96
Signed-off-by: Ishwarya Mathi M <ishwaryamm@ami.com>
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index 2088df3..c37a2af 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -657,8 +657,8 @@
# Example: ${resp} will be "51 XX XX XX XX ff ff ff ff ff ff ff ff XX"
- ${resp}= Run IPMI Standard Command
- ... raw ${IPMI_RAW_CMD['SEL_entry']['SEL_info'][0]}
+ ${resp}= Run IPMI Command
+ ... ${IPMI_RAW_CMD['SEL_entry']['SEL_info'][0]}
${resp}= Split String ${resp}
[Return] ${resp}
@@ -672,7 +672,7 @@
# ${ipmi_cmd} - IPMI raw cmd with invalid data length.
# ${error_code} - Expected error code e.g 0xc7, 0xcc.
- ${resp}= Run External IPMI Raw Command ${ipmi_cmd} fail_on_err=0
+ ${resp}= Run IPMI Command ${ipmi_cmd} fail_on_err=0
Should Contain ${resp} rsp=${error_code}
diff --git a/lib/ipmi_utils.py b/lib/ipmi_utils.py
index 34fd701..a9bebd7 100644
--- a/lib/ipmi_utils.py
+++ b/lib/ipmi_utils.py
@@ -50,7 +50,9 @@
sol_info[Retry Count]: 7
"""
- status, ret_values = grk.run_key_u("Run IPMI Standard Command sol info")
+ status, ret_values = grk.run_key_u(
+ "Run External IPMI Standard Command sol info"
+ )
# Create temp file path.
temp = tempfile.NamedTemporaryFile()
@@ -78,7 +80,7 @@
"""
status, ret_values = grk.run_key_u(
- "Run IPMI Standard Command sol set "
+ "Run External IPMI Standard Command sol set "
+ setting_name
+ " "
+ setting_value
@@ -666,7 +668,7 @@
"""
status, ret_values = grk.run_key_u(
- "Run IPMI Standard Command chassis status"
+ "Run External IPMI Standard Command chassis status"
)
result = vf.key_value_outbuf_to_dict(ret_values, process_indent=1)