Redfish IPv6 default gateway fix
Signed-off-by: Prashanth Katti <prkatti1@in.ibm.com>
Change-Id: Iaf076aa3e5a489ba4bc254d14a33808c3654c20a
diff --git a/lib/bmc_ipv6_utils.robot b/lib/bmc_ipv6_utils.robot
index 7050afd..1d20c71 100644
--- a/lib/bmc_ipv6_utils.robot
+++ b/lib/bmc_ipv6_utils.robot
@@ -55,7 +55,7 @@
Verify IPv6 Default Gateway On BMC
[Documentation] Verify IPv6 default gateway on BMC.
- [Arguments] ${gateway_ip}=${EMPTY}
+ [Arguments] ${gateway_ip}=0:0:0:0:0:0:0:0
# Description of argument(s):
# gateway_ip Gateway IPv6 address.
@@ -64,7 +64,7 @@
# If gateway IP is empty it will not have route entry.
- Run Keyword If '${gateway_ip}' == '${EMPTY}'
+ Run Keyword If '${gateway_ip}' == '0:0:0:0:0:0:0:0'
... Pass Execution Gateway IP is not configured.
... ELSE
... Should Contain ${route_info} ${gateway_ip}
diff --git a/redfish/managers/test_bmc_ipv6.robot b/redfish/managers/test_bmc_ipv6.robot
index f343b01..62b91c7 100644
--- a/redfish/managers/test_bmc_ipv6.robot
+++ b/redfish/managers/test_bmc_ipv6.robot
@@ -10,6 +10,7 @@
Test Setup Test Setup Execution
Test Teardown Test Teardown Execution
+Suite Setup Suite Setup Execution
*** Variables ***
@@ -50,6 +51,15 @@
*** Keywords ***
+Suite Setup Execution
+ [Documentation] Do suite setup execution.
+
+ ${active_channel_config}= Get Active Channel Config
+ ${ethernet_interface}= Set Variable ${active_channel_config['${CHANNEL_NUMBER}']['name']}
+
+ Set Suite variable ${ethernet_interface}
+
+
Test Setup Execution
[Documentation] Test setup execution.