+
+# the semantic for 't_from' and 't_until' here is:
+# if they are smaller than one year, they are relative to the current time
+# otherwise they are absolute
+def leases (options, index):
+ leases=[]
+ counter=0
+ slices=all_slicenames(options,index)
+ slice_sequence = slices[:1] + slices + [None,]
+ for iterator in range(12):
+ for slice in slice_sequence:
+ leases.append ( {'slice' : slice, 't_from':counter,'t_until':counter+reservation_granularity} )
+ counter += reservation_granularity
+ return leases
+