-def list_resources ():
- options = { 'geni_rspec_version' : version_dict}
- credential = bootstrap.get_credential_string()
- credentials = [ credential ]
- retcod = bootstrap.server_proxy (aggregate_url).ListResources(credentials,options)
- print "ListResources at %s returned : %20s..."%(aggregate_url,retcod)
-
-def main ():
+def list_resources():
+ bootstrap.bootstrap_my_gid()
+ credential = bootstrap.my_credential_string()
+ credentials = [credential]
+ options = {}
+ options['geni_rspec_version'] = version_dict
+ options['call_id'] = unique_call_id()
+ list_resources = bootstrap.server_proxy(
+ aggregate_url).ListResources(credentials, options)
+ print("miniclient: ListResources at %s returned : %s" %
+ (aggregate_url, truncate(list_resources)))
+
+
+def list_slice_resources():
+ bootstrap.bootstrap_my_gid()
+ credential = bootstrap.slice_credential_string(slice_hrn)
+ credentials = [credential]
+ options = {}
+ options['geni_rspec_version'] = version_dict
+ options['geni_slice_urn'] = slice_urn
+ options['call_id'] = unique_call_id()
+ list_resources = bootstrap.server_proxy(
+ aggregate_url).ListResources(credentials, options)
+ print("miniclient: ListResources at %s for slice %s returned : %s" %
+ (aggregate_url, slice_urn, truncate(list_resources)))
+
+
+def main():