New 'Build IPMI Ext Cmd' keyword
A new keyword to build the IPMI_EXT_CMD global variable for use by
keywords in ipmi_client.robot.
Also, made changes to appropriate keywords to call 'Build IPMI Ext Cmd'.
Change-Id: Ibe41c884d96cd57d6ac19f0be6ee5130632722e6
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index 4f6e0f2..030712f 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -8,6 +8,7 @@
Resource ../lib/state_manager.robot
Library String
+Library ipmi_client.py
*** Variables ***
${dbusHostIpmicmd1}= dbus-send --system ${OPENBMC_BASE_URI}HostIpmi/1
@@ -15,7 +16,7 @@
${netfnByte}= ${EMPTY}
${cmdByte}= ${EMPTY}
${arrayByte}= array:byte:
-${IPMI_EXT_CMD}= ipmitool -I lanplus -C ${IPMI_CIPHER_LEVEL}
+${IPMI_EXT_CMD} ${EMPTY}
${IPMI_USER_OPTIONS} ${EMPTY}
${IPMI_INBAND_CMD}= ipmitool -C ${IPMI_CIPHER_LEVEL}
${HOST}= -H
@@ -109,6 +110,7 @@
Run External IPMI Raw Command
[Documentation] Run the raw IPMI command externally.
[Arguments] ${args}
+
${ipmi_raw_cmd}= Catenate SEPARATOR=
... ${IPMI_EXT_CMD} -P${SPACE}${IPMI_PASSWORD}${SPACE}
... ${HOST}${SPACE}${OPENBMC_HOST}${SPACE}${RAW}${SPACE}${args}