Fix for MAC Testing eth1

Change-Id: I39631bf2df8b8132f142e305ce8103d480be320e
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/bmc_network_utils.robot b/lib/bmc_network_utils.robot
index e7f02ba..36aca95 100644
--- a/lib/bmc_network_utils.robot
+++ b/lib/bmc_network_utils.robot
@@ -159,8 +159,11 @@
     # Sample output of "fw_printenv | grep ethaddr"
     # ethaddr=xx:xx:xx:xx:xx:xx:xx
 
+    ${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 ethaddr
+    ...  /sbin/fw_printenv | grep ${ethernet_interface} 
 
     # Split the line and return MAC address.
     # Split list data: