Added new testcase to VMI menu
Changes:
- Added "Enable VMI DHCPv6 On Eth0 While Eth1
Has DHCPv6 And Verify" testcase
- Added "Enable VMI DHCPv6 On Eth1 While Eth0
Has DHCPv6 And Verify" testcase
Tested :
- Ran and Tested on BMC Environment
Change-Id: I886e264929c4986a168b5df3326b5958c0550758
Signed-off-by: Megha G N <Megha.G.N@ibm.com>
diff --git a/lib/external_intf/vmi_utils.robot b/lib/external_intf/vmi_utils.robot
index 03a504d..b313b6f 100644
--- a/lib/external_intf/vmi_utils.robot
+++ b/lib/external_intf/vmi_utils.robot
@@ -267,8 +267,8 @@
Set VMI DHCPv6 Property
[Documentation] Set VMI DHCPv6 attribute.
- [Arguments] ${dhcpv6_operatingmode}=${Disabled} ${valid_status_code}=${HTTP_ACCEPTED}
- ... ${interface}=${ethernet_interface}
+ [Arguments] ${dhcpv6_operatingmode}=${Disabled}
+ ... ${interface}=${ethernet_interface} ${valid_status_code}=${HTTP_ACCEPTED}
# Description of argument(s):
# dhcpv6_operatingmode Enabled if user wants to enable DHCPv6.
diff --git a/openpower/ext_interfaces/test_vmi.robot b/openpower/ext_interfaces/test_vmi.robot
index 49b14c4..8ebf61d 100644
--- a/openpower/ext_interfaces/test_vmi.robot
+++ b/openpower/ext_interfaces/test_vmi.robot
@@ -854,6 +854,24 @@
Verify VMI IPv6 Address DHCPv6
+Enable VMI DHCPv6 On Eth0 While Eth1 Has DHCPv6 And Verify
+ [Documentation] Enable DHCPv6 on eth0 when eth1 has DHCPv6 and verify that on
+ ... enabling DHCPv6 on eth0 will not impact DHCPv6 settings on eth1.
+ [Tags] Enable_VMI_DHCPv6_On_Eth0_While_Eth1_Has_DHCPv6_And_Verify
+ [Setup] Set VMI DHCPv6 Property Enabled eth1
+
+ Enable VMI DHCPv6 On One Interface When Other Interface Has DHCPv6 And Verify
+
+
+Enable VMI DHCPv6 On Eth1 While Eth0 Has DHCPv6 And Verify
+ [Documentation] Enable DHCPv6 on eth1 when eth0 has DHCPv6 and verify that on
+ ... enabling DHCPv6 on eth1 will not impact DHCPv6 settings on eth0.
+ [Tags] Enable_VMI_DHCPv6_On_Eth1_While_Eth0_Has_DHCPv6_And_Verify
+ [Setup] Set VMI DHCPv6 Property Enabled
+
+ Enable VMI DHCPv6 On One Interface When Other Interface Has DHCPv6 And Verify eth1
+
+
*** Keywords ***
Suite Setup Execution
@@ -1073,3 +1091,32 @@
${vmi_ipv6}= Verify VMI IPv6 Address Static
Should Be Equal ${vmi_ipv6["Address"]} ${valid_vmi_ipv6addr}
+
+
+Enable VMI DHCPv6 On One Interface When Other Interface Has DHCPv6 And Verify
+ [Documentation] Check enabling DHCPv6 on one interface will not impact the other
+ ... interface which is already configured with DHCPv6.
+ [Arguments] ${interface}=${ethernet_interface}
+
+ # Description of argument(s):
+ # interface VMI interface on which DHCPv6 should be enabled (eg. eth0 or eth1).
+
+ IF '${interface}' == 'eth0'
+ Set VMI DHCPv6 Property Enabled
+
+ # Verify eth0 VMI IPv6 address origin is set to DHCP.
+ Verify VMI IPv6 Address DHCPv6
+
+ # Check eth1 VMI IPv6 origin is still DHCP.
+ Verify VMI IPv6 Address DHCPv6 eth1
+
+ ELSE IF '${interface}' == 'eth1'
+ Set VMI DHCPv6 Property Enabled eth1
+
+ # Verify eth1 VMI IPv6 address origin is set to DHCP.
+ Verify VMI IPv6 Address DHCPv6 eth1
+
+ # Check eth0 VMI IPv6 origin is still DHCP.
+ Verify VMI IPv6 Address DHCPv6
+
+ END