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/network/test_bmc_dhcp_conf.robot b/network/test_bmc_dhcp_conf.robot
index 4a99697..808dded 100644
--- a/network/test_bmc_dhcp_conf.robot
+++ b/network/test_bmc_dhcp_conf.robot
@@ -58,12 +58,12 @@
[Documentation] Suite Setup Execution.
Ping Host ${OPENBMC_HOST}
- Ping Host ${OPENBMC_HOST_1}
+ Ping Host ${OPENBMC_HOST_ETH1}
Redfish.Login
${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
@@ -111,7 +111,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}
Verify Ethernet Config Property
[Documentation] verify ethernet config properties.