MAC Address Changes

Change-Id: I1c4179a79d9ff4ac8f54a6725da7eb6b24c14437
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/bmc_network_utils.robot b/lib/bmc_network_utils.robot
index 36aca95..7a42a22 100644
--- a/lib/bmc_network_utils.robot
+++ b/lib/bmc_network_utils.robot
@@ -162,8 +162,10 @@
     ${active_channel_config}=  Get Active Channel Config
     ${ethernet_interface}=  Set Variable  ${active_channel_config['${CHANNEL_NUMBER}']['name']}
 
-    ${cmd_output}  ${stderr}  ${rc}=  BMC Execute Command
-    ...  /sbin/fw_printenv | grep ${ethernet_interface} 
+    ${ethernet_interface}=  Set Variable If
+    ...  "${ethernet_interface}"=="eth0"  ethaddr  eth1addr
+
+    ${cmd_output}  ${stderr}  ${rc}=  BMC Execute Command  /sbin/fw_printenv | grep ${ethernet_interface}
 
     # Split the line and return MAC address.
     # Split list data: