Modified a case of IPMI network

Modify test case "Verify IPMI Inband Network Configuration".
Let user to specify channel number while running, if not,
the default is 1.

Signed-off-by: Tony Lee <tony.lee@quantatw.com>
Change-Id: I1fdfb8bdab978bbb082f7dcf0e609f63897875df
diff --git a/ipmi/test_ipmi_network.robot b/ipmi/test_ipmi_network.robot
index 93ca380..c83aea7 100644
--- a/ipmi/test_ipmi_network.robot
+++ b/ipmi/test_ipmi_network.robot
@@ -88,13 +88,13 @@
     [Teardown]  Run Keywords  Restore Configuration  AND  FFDC On Test Case Fail
 
     Redfish Power On
-    ${initial_lan_config}=  Get LAN Print Dict  ipmi_cmd_type=inband
+    ${initial_lan_config}=  Get LAN Print Dict  ${CHANNEL_NUMBER}  ipmi_cmd_type=inband
     Set Suite Variable  ${initial_lan_config}
 
     Set IPMI Inband Network Configuration  10.10.10.10  255.255.255.0  10.10.10.10
     Sleep  10
 
-    ${lan_print_output}=  Get LAN Print Dict  ipmi_cmd_type=inband
+    ${lan_print_output}=  Get LAN Print Dict  ${CHANNEL_NUMBER}  ipmi_cmd_type=inband
     Valid Value  lan_print_output['IP Address']  ["10.10.10.10"]
     Valid Value  lan_print_output['Subnet Mask']  ["255.255.255.0"]
     Valid Value  lan_print_output['Default Gateway IP']  ["10.10.10.10"]
@@ -126,13 +126,13 @@
     # gateway  The Gateway address to be set using ipmitool-inband.
 
     Run Inband IPMI Standard Command
-    ...  lan set 1 ipsrc static  login_host=${login}
+    ...  lan set ${CHANNEL_NUMBER} ipsrc static  login_host=${login}
     Run Inband IPMI Standard Command
-    ...  lan set 1 ipaddr ${ip}  login_host=${0}
+    ...  lan set ${CHANNEL_NUMBER} ipaddr ${ip}  login_host=${0}
     Run Inband IPMI Standard Command
-    ...  lan set 1 netmask ${netmask}  login_host=${0}
+    ...  lan set ${CHANNEL_NUMBER} netmask ${netmask}  login_host=${0}
     Run Inband IPMI Standard Command
-    ...  lan set 1 defgw ipaddr ${gateway}  login_host=${0}
+    ...  lan set ${CHANNEL_NUMBER} defgw ipaddr ${gateway}  login_host=${0}
 
 
 Restore Configuration