From: Tony Mack Date: Tue, 16 Jan 2007 22:19:21 +0000 (+0000) Subject: - call DeleteSlice X-Git-Tag: pycurl-7_13_1~86 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9538a99a4190a75414c5d3ad37b8ed928bb03e21;p=plcapi.git - call DeleteSlice --- diff --git a/PLC/Methods/SliceDelete.py b/PLC/Methods/SliceDelete.py index b009cc4e..d4ec61d1 100644 --- a/PLC/Methods/SliceDelete.py +++ b/PLC/Methods/SliceDelete.py @@ -1,8 +1,30 @@ +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)