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/lib/resource.robot b/lib/resource.robot
index c12f52a..550774a 100755
--- a/lib/resource.robot
+++ b/lib/resource.robot
@@ -23,6 +23,12 @@
${DBUS_PREFIX} ${EMPTY}
${PORT} ${EMPTY}
+# BMC ethernet eth0 and eth1 for multiple interfaces.
+# By default eth0 is assigned with OPENBMC_HOST
+${OPENBMC_HOST_ETH0} ${OPENBMC_HOST}
+${OPENBMC_HOST_ETH1} ${EMPTY}
+
+
# AUTH_SUFFIX here is derived from variables.py
${AUTH_URI} https://${OPENBMC_HOST}${AUTH_SUFFIX}
${OPENBMC_USERNAME} root