Modified keyword for ipmi user.
The default channel in the Keyword "Set Channel Access" is always 1.
Let user to specify channel while running, if not, the default is 1.
Example:
robot -v OPENBMC_HOST:x.x.x.x -v CHANNEL_NUMBER:2 ipmi/test_ipmi_user.robot
Signed-off-by: Tony Lee <tony.lee@quantatw.com>
Change-Id: I1363b1bed87e84ff14ab674969a67988bdc71c8d
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index 7422f79..b71d1c5 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -397,7 +397,7 @@
Set Channel Access
[Documentation] Verify that user is able to run IPMI command
... with given username and password.
- [Arguments] ${userid} ${options} ${channel}=1
+ [Arguments] ${userid} ${options} ${channel_number}=${CHANNEL_NUMBER}
# Description of argument(s):
# userid The user ID (e.g. "1", "2", etc.).
@@ -406,7 +406,7 @@
# channel_number The user's channel number (e.g. "1").
${ipmi_cmd}= Catenate SEPARATOR=
- ... channel setaccess${SPACE}${channel}${SPACE}${userid}
+ ... channel setaccess${SPACE}${channel_number}${SPACE}${userid}
... ${SPACE}${options}
Run IPMI Standard Command ${ipmi_cmd}