IPMI: Modified script based on oem sensor

Changes:
   -Modified script based on oem sensor count in
    Verify_Sensor_And_SDR_Count_In_Get_Device_SDR_Info
   _Via_Inband_IPMI Testcase
   -Modified the function name as fetch_oem_sdr_count in ipmi_utils.py
   -Modified keyword name as Fetch OEM Sdr Count in ipmi_test_sdr.robot

Tested:
   -Ran scripts  Successfully

Change-Id: I6dabd17da4942258b855e01197d3de6229160b3d
Signed-off-by: manimozhik <manimozhik@ami.com>
diff --git a/ipmi/test_ipmi_inband_sdr.robot b/ipmi/test_ipmi_inband_sdr.robot
index 20c7546..7a2f863 100644
--- a/ipmi/test_ipmi_inband_sdr.robot
+++ b/ipmi/test_ipmi_inband_sdr.robot
@@ -88,8 +88,13 @@
 
     # Get SDR Count From Get Device SDR Info command.
     ${SDR_count1}=  Get SDR Count From SDR Info
+    # Get sdr oem record count from "sdr elist -vvv" command output.
+    ${sdr_data}=  Run Inband IPMI Standard Command  sdr elist -vvv  fail_on_err=0
+    ${sdr_oem}=  Fetch OEM Sdr Count  ${sdr_data}
+    ${sdr_info_record_count}=  Evaluate  ${SDR_count1} - ${sdr_oem}
+
     # Compare Get Device SDR Sdr count with SDR Elist All count from lanplus.
-    Should Be Equal As Integers  ${SDR_count1}  ${SDR_count_lan1}
+    Should Be Equal As Integers  ${sdr_info_record_count}  ${SDR_count_lan1}
 
     # Reboot Host using Chassis Power Cycle.
     IPMI Power Cycle
@@ -104,8 +109,9 @@
 
     # Get SDR Count From Get Device SDR Info command.
     ${SDR_count2}=  Get SDR Count From SDR Info
+    ${sdr_info_record_count2}=  Evaluate  ${SDR_count2} - ${sdr_oem}
     # Compare Get Device SDR Sdr count with SDR Elist All count from lanplus.
-    Should Be Equal As Integers  ${SDR_count2}  ${SDR_count_lan2}
+    Should Be Equal As Integers  ${sdr_info_record_count2}  ${SDR_count_lan2}
 
 
 Verify Timestamp In Get Device SDR Info Via Inband IPMI
diff --git a/ipmi/test_ipmi_sdr.robot b/ipmi/test_ipmi_sdr.robot
index 008951f..89801ee 100755
--- a/ipmi/test_ipmi_sdr.robot
+++ b/ipmi/test_ipmi_sdr.robot
@@ -49,7 +49,7 @@
 
     # Get SDR OEM record count from "sdr elist -vvv" command output.
     ${sdr_data}=  Run IPMI Standard Command  sdr elist -vvv
-    ${sdr_oem}=  Fetch Sdr Count  ${sdr_data}
+    ${sdr_oem}=  Fetch OEM Sdr Count  ${sdr_data}
     ${sdr_info_record_count}=  Evaluate  ${sdr_info['record_count']} - ${sdr_oem}
 
     # Get sensor count from "sdr elist all" command output.