Add test cases for DHCPv6 Properties

    Changes:
        Added test cases for DHCPv6 properties.

    Tested:
        Ran and tested on BMC Environment.

Change-Id: I24e21eba8969178f731b5d920cd098e7dc1a1409
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/redfish/managers/test_multiple_interfaces_dhcp.robot b/redfish/managers/test_multiple_interfaces_dhcp.robot
index bf65e43..dc9c7b2 100644
--- a/redfish/managers/test_multiple_interfaces_dhcp.robot
+++ b/redfish/managers/test_multiple_interfaces_dhcp.robot
@@ -62,7 +62,6 @@
 Set Network Property via Redfish And Verify
    [Documentation]  Set network property via Redfish and verify.
    [Tags]  Set_Network_Property_via_Redfish_And_Verify
-   [Teardown]  Restore Configuration
    [Template]  Apply DHCP Config
 
     # property
@@ -75,6 +74,21 @@
     ${enable_multiple_properties}
     ${disable_multiple_properties}
 
+Set Network Property For DHCPv6 via Redfish And Verify
+   [Documentation]  Set network property for DHCPv6 via Redfish and verify.
+   [Tags]  Set_Network_Property_For_DHCPv6_via_Redfish_And_Verify
+   [Template]  Apply DHCPv6 Config And Verify
+
+    # property
+    ${dns_enable_dict}
+    ${dns_disable_dict}
+    ${domain_name_enable_dict}
+    ${domain_name_disable_dict}
+    ${ntp_enable_dict}
+    ${ntp_disable_dict}
+    ${enable_multiple_properties}
+    ${disable_multiple_properties}
+
 Enable DHCP On Eth1 And Check No Impact On Eth0
     [Documentation]  Enable DHCP On Eth1 And Check No Impact On Eth0.
     [Tags]  Enable_DHCP_On_Eth1_And_Check_No_Impact_On_Eth0
@@ -169,15 +183,24 @@
     # Description of Argument(s):
     # property  DHCP property values.
 
-    ${active_channel_config}=  Get Active Channel Config
-    Redfish.Patch
-    ...  /redfish/v1/Managers/${MANAGER_ID}/EthernetInterfaces/${active_channel_config['${CHANNEL_NUMBER}']['name']}/
+    Redfish.Patch  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
     ...  body={"DHCPv4":${property}}  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
 
-    ${resp}=  Redfish.Get
-    ...  /redfish/v1/Managers/${MANAGER_ID}/EthernetInterfaces/${active_channel_config['${CHANNEL_NUMBER}']['name']}
+    ${resp}=  Redfish.Get  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
     Verify Ethernet Config Property  ${property}  ${resp.dict["DHCPv4"]}
 
+Apply DHCPv6 Config And Verify
+    [Documentation]  Apply DHCPv6 config and verify.
+    [Arguments]  ${property}
+
+    # Description of Argument(s):
+    # property  DHCPv6 property values.
+
+    Redfish.Patch  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
+    ...  body={"DHCPv6":${property}}  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
+    ${resp}=  Redfish.Get  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
+
+    Verify Ethernet Config Property  ${property}  ${resp.dict["DHCPv6"]}
 
 Verify Ethernet Config Property
     [Documentation]  verify ethernet config properties.
@@ -220,8 +243,6 @@
     # Description of argument(s):
     # channel_number   Ethernet channel number, 1 is for eth0 and 2 is for eth1 (e.g. "1").
 
-    ${active_channel_config}=  Get Active Channel Config
-    ${ethernet_interface}=  Set Variable  ${active_channel_config['${channel_number}']['name']}
     ${resp}=  Redfish.Get  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}
 
     @{network_configurations}=  Get From Dictionary  ${resp.dict}  IPv4StaticAddresses
@@ -233,6 +254,9 @@
     Ping Host  ${OPENBMC_HOST}
     Redfish.Login
 
+    ${active_channel_config}=  Get Active Channel Config
+    ${ethernet_interface}=  Set Variable  ${active_channel_config['${CHANNEL_NUMBER}']['name']}
+
     # Get the configuration of eth1
     ${network_configurations}=  Get Network Configuration Using Channel Number  ${2}
     FOR  ${network_configuration}  IN  @{network_configurations}