Replaced REST with Redfish for IPMI network mode test case

Change-Id: Id096d7f9e61b8c3823275e0b5c1617404db229bc
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/ipmi/test_ipmi_network.robot b/ipmi/test_ipmi_network.robot
index c83aea7..e548813 100644
--- a/ipmi/test_ipmi_network.robot
+++ b/ipmi/test_ipmi_network.robot
@@ -100,6 +100,16 @@
     Valid Value  lan_print_output['Default Gateway IP']  ["10.10.10.10"]
 
 
+Get IP Address Source And Verify Using Redfish
+    [Documentation]  Get IP address source and verify it using Redfish.
+    [Tags]  Get_IP_Address_Source_And_Verify_Using_Redfish
+
+    ${eth0}=  Redfish.Get Properties  /redfish/v1/Managers/bmc/EthernetInterfaces/eth0
+    ${ip_address_source}=  Set Variable If  ${eth0['DHCPv4']['DHCPEnabled']}  DHCP  Static Address
+    ${lan_config}=  Get LAN Print Dict
+    Valid Value  lan_config['IP Address Source']  [${ip_address_source}]
+
+
 *** Keywords ***
 
 Get Physical Network Interface Count
diff --git a/tests/ipmi/test_general_ipmi.robot b/tests/ipmi/test_general_ipmi.robot
index 8875305..41248c4 100755
--- a/tests/ipmi/test_general_ipmi.robot
+++ b/tests/ipmi/test_general_ipmi.robot
@@ -233,24 +233,6 @@
     ...  msg=Baseboard temperature above allowed threshold ${allowed_temp_diff}.
 
 
-Retrieve Network Mode Via IPMI And Verify Using REST
-    [Documentation]  Retrieve network mode from LAN print using IPMI.
-    [Tags]  Retrieve_Network_Mode_Via_IPMI_And_Verify_Using_REST
-
-    # Fetch "Mode" from IPMI LAN print.
-    ${network_mode_ipmi}=  Fetch Details From LAN Print  Source
-
-    # Verify "Mode" using REST.
-    ${network_mode_rest}=  Read Attribute
-    ...  ${NETWORK_MANAGER}eth0  DHCPEnabled
-    Run Keyword If  '${network_mode_ipmi}' == 'Static Address'
-    ...  Should Be Equal  ${network_mode_rest}  ${0}
-    ...  msg=Verification of network setting failed.
-    ...  ELSE IF  '${network_mode_ipmi}' == 'DHCP'
-    ...  Should Be Equal  ${network_mode_rest}  ${1}
-    ...  msg=Verification of network setting failed.
-
-
 Verify Get Device ID
     [Documentation]  Verify get device ID command output.
     [Tags]  Verify_Get_Device_ID