9 plc_host='www.planet-lab.eu'
10 api_url="https://%s:443/PLCAPI/"%plc_host
12 plc_api= xmlrpclib.ServerProxy(api_url, allow_none=True)
14 sliceName = slice_pref+raw_input("Give me the name of the slice : ")
17 slices = plc_api.GetSlices(Auth.auth, sliceName, ['creator_person_id', 'name', 'max_nodes', 'node_ids', 'person_ids', 'slice_id'])
20 for slice_i in slices:
22 sliceWanted = slices[0]
24 if sliceWanted == None:
25 print "The slice "+sliceName+" doesn't exist"
27 persons = plc_api.GetPersons(Auth.auth, sliceWanted['person_ids'], ['first_name', 'email'])
28 nodes = plc_api.GetNodes(Auth.auth, sliceWanted['node_ids'], ['hostname', 'site_id', 'node_id'])
30 tags = plc_api.GetSliceTags(Auth.auth, {'slice_id': sliceWanted['slice_id']}, ['description', 'tagname', 'value', 'slice_tag_id'])
32 creator = plc_api.GetPersons(Auth.auth, sliceWanted['creator_person_id'], ['first_name', 'email'])
35 for person in persons:
38 if creator not in persons:
40 print "\t\t"+str(creator)
42 print "\tCreator is in user list"