Modified cases in suite test_bmc_network_mac

- Let user to specify Ethernet Interface name by channel number while
running, if not, the channel number default is 1.

Change-Id: Ib67b6bcb279c8c6b05b8b7650f6ff640fa97fb27
Signed-off-by: Tony Lee <tony.lee@quantatw.com>
diff --git a/redfish/managers/test_bmc_network_mac.robot b/redfish/managers/test_bmc_network_mac.robot
index f89dc65..182f7ec 100644
--- a/redfish/managers/test_bmc_network_mac.robot
+++ b/redfish/managers/test_bmc_network_mac.robot
@@ -122,9 +122,11 @@
     [Documentation]  Do suite setup tasks.
 
     Redfish.Login
+    ${active_channel_config}=  Get Active Channel Config
+    ${ethernet_interface}=  Set Variable  ${active_channel_config['${CHANNEL_NUMBER}']['name']}
 
     # Get BMC MAC address.
-    ${resp}=  redfish.Get  ${REDFISH_NW_ETH0_URI}
+    ${resp}=  redfish.Get  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
     Set Suite Variable  ${initial_mac_address}  ${resp.dict['MACAddress']}
 
     Validate MAC On BMC  ${initial_mac_address}
@@ -140,17 +142,20 @@
     # mac_address      MAC address of BMC.
     # expected_result  Expected status of MAC configuration.
 
+    ${active_channel_config}=  Get Active Channel Config
+    ${ethernet_interface}=  Set Variable  ${active_channel_config['${CHANNEL_NUMBER}']['name']}
+
     Redfish.Login
     ${payload}=  Create Dictionary  MACAddress=${mac_address}
 
-    Redfish.Patch  ${REDFISH_NW_ETH0_URI}  body=&{payload}
+    Redfish.Patch  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}  body=&{payload}
     ...  valid_status_codes=[200, 400, 500]
 
     # After any modification on network interface, BMC restarts network
     # module, wait until it is reachable.
 
     Wait Until Keyword Succeeds  ${NETWORK_TIMEOUT}  ${NETWORK_RETRY_TIME}
-    ...  redfish.Get  ${REDFISH_NW_ETH0_URI}
+    ...  redfish.Get  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
 
     # Verify whether new MAC address is populated on BMC system.
     # It should not allow to configure invalid settings.