X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetSliceInstantiations.py;h=f073d6e2c966a001e63d0f03462cfa9a70ee8c89;hb=e16dffa42d9358eae914eecc8629d0d77bd8121e;hp=1cfcee923043eeb9e2680222ea7f1713d2a2fb32;hpb=d4c363a3ee55334eacd91f303adf6ecc20055d1e;p=plcapi.git diff --git a/PLC/Methods/GetSliceInstantiations.py b/PLC/Methods/GetSliceInstantiations.py index 1cfcee9..f073d6e 100644 --- a/PLC/Methods/GetSliceInstantiations.py +++ b/PLC/Methods/GetSliceInstantiations.py @@ -1,3 +1,5 @@ +# $Id$ +# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -9,7 +11,7 @@ class GetSliceInstantiations(Method): Returns an array of all valid slice instantiation states. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node'] accepts = [ Auth() @@ -17,6 +19,5 @@ class GetSliceInstantiations(Method): returns = [SliceInstantiation.fields['instantiation']] - def call(self, auth): return [slice_instantiation['instantiation'] for slice_instantiation in SliceInstantiations(self.api)]