Clean up Redfish event notification subscriptions

Change-Id: I0e00c9ddfe9f0a756604c7fd06f88b0c2cfcbf7a
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/extended/standby_bmc.robot b/extended/standby_bmc.robot
index d7ecc5c..cb4a353 100644
--- a/extended/standby_bmc.robot
+++ b/extended/standby_bmc.robot
@@ -97,6 +97,7 @@
     Run Keyword And Ignore Error  Redfish Purge Event Log
     Run Keyword And Ignore Error  Redfish Delete All BMC Dumps
     Run Keyword And Ignore Error  Redfish Delete All System Dumps
+    Run Keyword And Ignore Error  Clear All Subscriptions
     Run Keyword And Ignore Error  Delete All Redfish Sessions
 
 
@@ -168,3 +169,12 @@
     ...  ping -M do -s ${mtu} -c 10 ${OPENBMC_HOST}
     Should Be Equal As Integers  ${rc}  0
     Should Not Contain  ${output}  100% packet loss
+
+
+Clear All Subscriptions
+    [Documentation]  Delete all subscriptions.
+
+    ${subscriptions}=  Redfish.Get Attribute  /redfish/v1/EventService/Subscriptions  Members
+    FOR  ${subscription}  IN  @{subscriptions}
+        Redfish.Delete  ${subscription['@odata.id']}
+    END