2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.SliceInstantiations import SliceInstantiation, SliceInstantiations
6 from PLC.Auth import Auth
8 class GetSliceInstantiations(Method):
10 Returns an array of all valid slice instantiation states.
13 roles = ['admin', 'pi', 'user', 'tech', 'node']
19 returns = [SliceInstantiation.fields['instantiation']]
22 return [slice_instantiation['instantiation'] for slice_instantiation in SliceInstantiations(self.api)]