return [ user['name'] for user in users(options)]
def sites (options,index):
+ latitude= -90 + (index*10)
+ longitude= -180 + (index*20)
return [ {'site_fields' : {'name':'main site for plc number %d'%index,
'login_base':login_base(index),
'abbreviated_name':'PlanetTest%d'%index,
'max_slices':100,
'url':'http://test.onelab.eu',
+ 'latitude':float(latitude),
+ 'longitude':float(longitude),
},
'address_fields' : {'line1':'route des lucioles',
'city':'sophia',
def plc (options,index) :
return {
+ 'index' : index,
'name' : 'onetest%d'%index,
# as of yet, not sure we can handle foreign hosts, but this is required though
'hostname' : 'deferred-myplc-hostbox-%d'%index,
'regularuser':regularuser,
'slicename' : slicename,
'domain':domain,
+ # the default is to use AMs in the various aggregates.xml
+ # stack config_sfamesh to point to SMs instead
+ 'neighbours-port':12346,
}
def sfa_slice_specs (options,index,slicename,regularuser):