Added new cases for get channel authentication capabilities
Modified existing testcase for get channel authentication capabilities
via ipmi cmd to support multiple active channels.
Added testcase to verify channel auth cap ipmi cmd for invalid channels
Getting invalid channels list from /usr/share/ipmi-providers/channel_config.json
file.
Added testcase to verify ipmi raw cmd with one extra byte and
also raw cmd with one byte less
Tested: Run robot ipmi/test_ipmi_general.robot
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
Change-Id: Ie881a0d847bff73d8a86dd5e67268b35fe346b47
diff --git a/lib/ipmi_utils.py b/lib/ipmi_utils.py
index af0e5a3..f8cc9be 100644
--- a/lib/ipmi_utils.py
+++ b/lib/ipmi_utils.py
@@ -691,7 +691,7 @@
return vf.outbuf_to_report(stdout)
-def get_channel_auth_capabilities(channel_number=1):
+def get_channel_auth_capabilities(channel_number=1, privilege_level=4):
r"""
Get the channel authentication capabilities and return as a dictionary.
@@ -711,7 +711,8 @@
"""
status, ret_values = \
- grk.run_key_u("Run IPMI Standard Command channel authcap " + str(channel_number) + " 4")
+ grk.run_key_u("Run IPMI Standard Command channel authcap " + str(channel_number) + " "
+ + str(privilege_level))
result = vf.key_value_outbuf_to_dict(ret_values, process_indent=1)
return result