Verify IPMI works on both network interfaces

Change-Id: I52b399a3664bf476863266c00dd36d91d1893cad
Signed-off-by: Anves Kumar rayankula <anvesr77@in.ibm.com>
diff --git a/redfish/managers/test_multiple_interfaces.robot b/redfish/managers/test_multiple_interfaces.robot
index 110ea98..dec02d7 100644
--- a/redfish/managers/test_multiple_interfaces.robot
+++ b/redfish/managers/test_multiple_interfaces.robot
@@ -20,6 +20,10 @@
 Test Teardown   FFDC On Test Case Fail
 Suite Teardown  Run Keywords  Redfish1.Logout  AND  Redfish.Logout
 
+*** Variables ***
+
+${cmd_prefix}  ipmitool -I lanplus -C 17 -p 623 -U ${OPENBMC_USERNAME} -P ${OPENBMC_PASSWORD}
+
 *** Test Cases ***
 
 Verify Both Interfaces BMC IP Addresses Accessible Via SSH
@@ -116,6 +120,15 @@
     Close All Connections
 
 
+Verify IPMI Works On Both Network Interfaces
+    [Documentation]  Verify IPMI works on both network interfaces.
+    [Tags]  Verify_IPMI_Works_On_Both_Network_Interfaces
+
+    Run IPMI  ${OPENBMC_HOST_1}  power on
+    ${status1}=  Run IPMI  ${OPENBMC_HOST}  power status
+    ${status2}=  Run IPMI  ${OPENBMC_HOST_1}  power status
+    Should Be Equal  ${status1}  ${status2}
+
 *** Keywords ***
 
 Get Network Configuration Using Channel Number
@@ -178,3 +191,17 @@
 
     Run Keyword If  ${enabled} == ${True}  Should Be Equal  ${status}  ${True}
     ...  ELSE  Should Be Equal  ${status}  ${False}
+
+
+Run IPMI
+    [Documentation]  Run IPMI command.
+    [Arguments]  ${host}  ${sub_cmd}
+
+    # Description of argument(s):
+    # host         BMC host name or IP address.
+    # sub_cmd      The IPMI command string to be executed.
+
+    ${rc}  ${output}=  Run And Return Rc And Output  ${cmd_prefix} -H ${host} ${sub_cmd}
+    Should Be Equal As Strings  ${rc}  0
+    [Return]  ${output}
+