"""
interfaces = ['aggregate', 'slicemgr']
accepts = [
+ Parameter(type([str]), "List of URNs"),
Mixed(Parameter(str, "Credential string"),
Parameter(type([str]), "List of credentials")),
Parameter(dict, "Options")
]
returns = Parameter(str, "List of resources")
- def call(self, creds, options):
+ def call(self, urns, creds, options):
self.api.logger.info("interface: %s\tmethod-name: %s" % (self.api.interface, self.name))
# client must specify a version
else:
raise SfaInvalidArgument('Must specify an rspec version option. geni_rspec_version cannot be null')
- # Find the valid credentials
- valid_creds = self.api.auth.checkCredentials(creds, 'listnodes')
+ valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', urns, \
+ check_sliver_callback = self.api.manager.driver.check_sliver_credentials)
# get hrn of the original caller
origin_hrn = options.get('origin_hrn', None)
if not origin_hrn:
- origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
+ origin_hrn = Credential(cred=valid_creds[0]).get_gid_caller().get_hrn()
desc = self.api.manager.Describe(self.api, creds, urns, options)
# filter rspec through sfatables