Fixed test code changes

Changes:
    - Fixed teardown and added response code

Tested:
    - Ran and Tested on BMC Environment.

Change-Id: I104c75e96c06d1141a8073e5024ea0e6bc5143bb
Signed-off-by: Anvesh Kumar Rayankula <anvesh.kumar.rayankula@ibm.com>
diff --git a/redfish/managers/test_bmc_ipv6.robot b/redfish/managers/test_bmc_ipv6.robot
index 9add51e..2f25d99 100644
--- a/redfish/managers/test_bmc_ipv6.robot
+++ b/redfish/managers/test_bmc_ipv6.robot
@@ -65,6 +65,8 @@
 Configure IPv6 Address And Verify
     [Documentation]  Configure IPv6 address and verify.
     [Tags]  Configure_IPv6_Address_And_Verify
+    [Teardown]  Run Keywords
+    ...  Delete IPv6 Address  ${test_ipv6_addr}  AND  Test Teardown Execution
     [Template]  Configure IPv6 Address On BMC
 
 
@@ -375,7 +377,7 @@
 
     # IPv6 address that is deleted should not be there on BMC.
     ${delete_status}=  Run Keyword And Return Status  Verify IPv6 On BMC  ${ipv6_addr}
-    IF  '${valid_status_codes}' == '${HTTP_OK}'
+    IF  '${valid_status_codes}' == '[${HTTP_OK},${HTTP_ACCEPTED},${HTTP_NO_CONTENT}]'
         Should Be True  '${delete_status}' == '${False}'
     ELSE
         Should Be True  '${delete_status}' == '${True}'