Redundance eth0/eth1 network interfaces changes
Changes:
- Introduce OPENBMC_HOST_ETH0 and OPENBMC_HOST_ETH1
- Assign OPENBMC_HOST_ETH0 default with OPENBMC_HOST
and OPENBMC_HOST_ETH1 with EMPTY
- Modify all the code which involves using both eth0
and eth1
- User will need to key in as
-v OPENBMC_HOST_ETH1:xx.xx.xx.xx
as oppose to earlier
-v OPENBMC_HOST_1:xx.xx.xx.xx
Tested:
- Sanity dry-run robot test with changes from sandbox
Change-Id: Iedeff2cfa252637bcf202979772ee1c5c90066b5
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_multiple_interfaces_dhcp.robot b/redfish/managers/test_multiple_interfaces_dhcp.robot
index 479f5a7..b617405 100644
--- a/redfish/managers/test_multiple_interfaces_dhcp.robot
+++ b/redfish/managers/test_multiple_interfaces_dhcp.robot
@@ -208,7 +208,7 @@
[Documentation] Restore the configuration to Both Static Network
Run Keyword If '${CHANNEL_NUMBER}' == '${1}' Add IP Address ${OPENBMC_HOST} ${eth0_subnet_mask} ${eth0_gateway}
- ... ELSE IF '${CHANNEL_NUMBER}' == '{2}' Add IP Address ${OPENBMC_HOST_1} ${eth1_subnet_mask} ${eth1_gateway}
+ ... ELSE IF '${CHANNEL_NUMBER}' == '{2}' Add IP Address ${OPENBMC_HOST_ETH1} ${eth1_subnet_mask} ${eth1_gateway}
Get Network Configuration Using Channel Number
[Documentation] Get ethernet interface.
@@ -233,7 +233,7 @@
# Get the configuration of eth1
${network_configurations}= Get Network Configuration Using Channel Number ${2}
FOR ${network_configuration} IN @{network_configurations}
- Run Keyword If '${network_configuration['Address']}' == '${OPENBMC_HOST_1}'
+ Run Keyword If '${network_configuration['Address']}' == '${OPENBMC_HOST_ETH1}'
... Run Keywords Set Suite Variable ${eth1_subnet_mask} ${network_configuration['SubnetMask']}
... AND Set Suite Variable ${eth1_gateway} ${network_configuration['Gateway']}
... AND Exit For Loop