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