- def locate_first_sliver (self):
- slice_spec = self.plc_spec['slices'][0]
- slicename = slice_spec['slice_fields']['name']
- nodename = slice_spec['nodenames'][0]
- return self.locate_sliver_obj(nodename,slicename)
+ def all_sliver_objs (self):
+ result=[]
+ for slice_spec in self.plc_spec['slices']:
+ slicename = slice_spec['slice_fields']['name']
+ for nodename in slice_spec['nodenames']:
+ result.append(self.locate_sliver_obj (nodename,slicename))
+ return result