Added new test for VMI menu
Changes:
- Added test
"Enable VMI SLAAC And Check Persistency On BMC Reboot"
Tested:
- Ran successfully test_vmi.robot
Change-Id: I99050d764ad66646bc1d8cd2275ec7010a46e0e6
Signed-off-by: Megha G N <Megha.G.N@ibm.com>
diff --git a/openpower/ext_interfaces/test_vmi.robot b/openpower/ext_interfaces/test_vmi.robot
index bcd4476..2dd2969 100644
--- a/openpower/ext_interfaces/test_vmi.robot
+++ b/openpower/ext_interfaces/test_vmi.robot
@@ -35,6 +35,7 @@
&{DISABLE_SLAAC} StatelessAddressAutoConfig=&{SLAAC_DISABLED}
${default} 0.0.0.0
+${default_ipv6addr} ::
*** Test Cases ***
@@ -498,6 +499,24 @@
Verify VMI IPv6 Address Static
+Enable VMI SLAAC And Check Persistency On BMC Reboot
+ [Documentation] Enable VMI SLAACv6 and verify its persistency
+ ... on BMC reboot and this works on the setup where router
+ ... advertise network prefix.
+ [Tags] Enable_VMI_SLAAC_And_Check_Persistency_On_BMC_Reboot
+
+ Set VMI SLAACv6 Origin ${True}
+
+ # Reboot BMC and verify persistency.
+ OBMC Reboot (off)
+ Redfish Power On
+ Wait For Host Boot Progress To Reach Required State
+
+ # Check origin is set to slaac and address are getting displayed.
+ ${vmi_ipv6addr}= Verify VMI IPv6 Address SLAAC
+ Should Not Be Equal ${vmi_ipv6addr["Address"]} ${default_ipv6addr}
+
+
*** Keywords ***
Suite Setup Execution
@@ -694,3 +713,4 @@
${vmi_ipv6_config}= Get From List ${vmi_ipv6_configurations} 0
Should Not Be Empty ${vmi_ipv6_config["Address"]}
Should Be Equal As Strings ${vmi_ipv6_config["AddressOrigin"]} ${ipv6_origin}
+ RETURN &{vmi_ipv6_config}