get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / SliceNodesAdd.py
1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Nodes import Node, Nodes
5 from PLC.Slices import Slice, Slices
6 from PLC.Auth import Auth
7 from PLC.Methods.AddSliceToNodes import AddSliceToNodes
8
9 class SliceNodesAdd(AddSliceToNodes):
10     """
11     Deprecated. See AddSliceToNodes.
12
13     """
14
15     status = "deprecated"
16
17     roles = ['admin', 'pi', 'user']
18
19     accepts = [
20         Auth(),
21         Slice.fields['name'],
22         [Node.fields['hostname']]
23         ]
24
25     returns = Parameter(int, '1 if successful')
26
27     def call(self, auth, slice_name, nodes_list):
28
29         return AddSliceToNodes.call(self, auth, slice_name, nodes_list)