svn keywords
[plcapi.git] / PLC / Methods / SliceDelete.py
index b009cc4..453b707 100644 (file)
@@ -1,8 +1,31 @@
+# $Id$
+# $URL$
+import re
+
+from PLC.Faults import *
+from PLC.Method import Method
+from PLC.Parameter import Parameter, Mixed
+from PLC.Slices import Slice, Slices
+from PLC.Auth import Auth
 from PLC.Methods.DeleteSlice import DeleteSlice
 
 class SliceDelete(DeleteSlice):
     """
     Deprecated. See DeleteSlice.
+
     """
 
     status = "deprecated"
+
+    roles = ['admin', 'pi']
+
+    accepts = [
+        Auth(),
+        Slice.fields['name']
+        ]
+
+    returns = Parameter(int, 'Returns 1 if successful, a fault otherwise.')
+
+    def call(self, auth, slice_name):
+
+       return DeleteSlice.call(self, auth, slice_name)