Modify hard-code when set a network config
Modify hard-code to global variable when set a network configuration.
Signed-off-by: Tony Lee <tony.lee@quantatw.com>
Change-Id: Ib7957b1156836b0e29585982d06f5b783bee4083
diff --git a/ipmi/test_ipmi_network_configuration.robot b/ipmi/test_ipmi_network_configuration.robot
index 52d6007..b9b456b 100644
--- a/ipmi/test_ipmi_network_configuration.robot
+++ b/ipmi/test_ipmi_network_configuration.robot
@@ -38,13 +38,13 @@
Redfish Power On
- Set IPMI Inband Network Configuration 10.10.10.10 255.255.255.0 10.10.10.10
+ Set IPMI Inband Network Configuration ${STATIC_IP} ${NETMASK} ${GATEWAY}
Sleep 10
${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"]
+ Valid Value lan_print_output['IP Address'] ["${STATIC_IP}"]
+ Valid Value lan_print_output['Subnet Mask'] ["${NETMASK}"]
+ Valid Value lan_print_output['Default Gateway IP'] ["${GATEWAY}"]
Disable VLAN Via IPMI When Multiple VLAN Exist On BMC