self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, hrn, self.name))
- (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
-
# Find the valid credentials
- valid_creds = self.api.auth.checkCredentials(creds, 'createsliver', hrn, speaking_for)
+ valid_creds = self.api.auth.checkCredentials(creds, 'createsliver', hrn, options=options)
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
# make sure users info is specified
def call(self, xrn, creds, options):
(hrn, type) = urn_to_hrn(xrn)
- (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
- valid_creds = self.api.auth.checkCredentials(creds, 'deletesliver', hrn, speaking_for)
+ valid_creds = self.api.auth.checkCredentials(creds, 'deletesliver', hrn, options=options)
#log the call
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
# get slice's hrn from options
xrn = options.get('geni_slice_urn', '')
(hrn, _) = urn_to_hrn(xrn)
- (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
# Find the valid credentials
- valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', hrn, speaking_for)
+ valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', hrn, options=options)
# get hrn of the original caller
origin_hrn = options.get('origin_hrn', None)
self.api.logger.info("interface: %s\ttarget-hrn: %s\tcaller-creds: %s\tmethod-name: %s"%(self.api.interface, hrn, creds, self.name))
- (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
-
# Find the valid credentials
- valid_creds = self.api.auth.checkCredentials(creds, 'renewsliver', hrn, speaking_for)
+ valid_creds = self.api.auth.checkCredentials(creds, 'renewsliver', hrn, options=options)
# Validate that the time does not go beyond the credential's expiration time
requested_time = utcparse(expiration_time)
self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, hrn, self.name))
- status = self.api.manager.SliverStatus(self.api, hrn, valid_creds, options)
+ status = self.api.manager.SliverStatus(self.api, hrn, valid_creds, options=options)
return status