Added new script to verify IPMI cmd via lanplus interface.

And also added a case to execute lanplus multiple times.

Created new resource file with keyword which contains Few ipmi commands
to execute over lanplus interface.

We can add more ipmi commands in future.

Tested: Run robot  ipmi/test_ipmi_lanplus.robot

Signed-off-by: Nagarjun B  <nagarjunb@ami.com>
Change-Id: Ic8f559e47b908a3b12af598a6e2b0c81bf947a37
diff --git a/lib/ipmi_utils.robot b/lib/ipmi_utils.robot
index a4e7533..d8dac62 100644
--- a/lib/ipmi_utils.robot
+++ b/lib/ipmi_utils.robot
@@ -48,3 +48,44 @@
 
     #### raw cmd for get SEL INFO.
     Run Inband IPMI Raw Command  ${IPMI_RAW_CMD['SEL_Info']['get'][0]}
+
+Verify Lanplus Interface Commands
+    [Documentation]  Execute set of IPMI raw Command via lanplus interface and
+    ...  verify it is executable from remote server. Set of IPMI raw commands
+    ...  includes system interface command which should not execute via lanplus
+    ...  interface.
+
+    #### raw cmd for get device ID.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['Device ID']['Get'][0]}
+
+    #### Raw cmd for cold reset.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['Cold Reset']['reset'][0]}
+
+    Wait Until Keyword Succeeds  2 min  10 sec  Is BMC Unpingable
+    Wait Until Keyword Succeeds  3 min  10 sec  Is BMC Operational
+    ## Waiting time to get Lanplus interface enabled.
+    Wait Until Keyword Succeeds  3 min  10 sec
+    ...  Run External IPMI Raw Command  ${IPMI_RAW_CMD['Device ID']['Get'][0]}
+
+    #### raw cmd for get device GUID.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['Device GUID']['Get'][0]}
+
+    #### raw cmd for get IP addr.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['lan_parameters']['get_ip'][0]}
+
+    #### raw cmd for get IP addr src.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['lan_parameters']['get_ip_src'][0]}
+
+    #### raw cmd for get Dot1Q details.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['lan_parameters']['get_dot1q'][0]}
+
+    ## Executing system interface command on lanplus interface.
+    #### raw cmd for get SDR Info.
+    Run Keyword and Expect Error  *Insufficient privilege level*
+    ...  Run External IPMI Raw Command  ${IPMI_RAW_CMD['SDR_Info']['get'][0]}
+
+    #### raw cmd for get Chassis status.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['Chassis_status']['get'][0]}
+
+    #### raw cmd for get SEL INFO.
+    Run External IPMI Raw Command  ${IPMI_RAW_CMD['SEL_Info']['get'][0]}