summaryrefslogtreecommitdiffstats
path: root/ATFCleanup.py
diff options
context:
space:
mode:
Diffstat (limited to 'ATFCleanup.py')
-rwxr-xr-xATFCleanup.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/ATFCleanup.py b/ATFCleanup.py
new file mode 100755
index 0000000..c15f970
--- /dev/null
+++ b/ATFCleanup.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+
+import ATFUtils
+
+def cleanup():
+ """
+ Description:
+ * Stop Glusterd on all Servers
+ * Stop Glusterd on all Clients
+ * Disconnect all SSH Connections
+ * Remove all Logger File Handlers
+
+ Parameters:
+ None
+
+ Returns: 0
+ """
+
+ ATFUtils.stopserversglusterd()
+ ATFUtils.stopclientsglusterd()
+ ATFUtils.SshObj.closeall()
+ ATFUtils.LogObj.remove_detaillog_handler('ATF_LOG')
+
+ return 0
+