Changeset e83f2f2 for fedd/federation/dragon_access.py
- Timestamp:
- Dec 14, 2010 6:58:28 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- c092b7f
- Parents:
- 2627eb3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/dragon_access.py
r2627eb3 re83f2f2 418 418 return (repo, alloc_log) 419 419 420 def finalize_experiment(self, topo, vlan_no, gri, aid, alloc_id ):420 def finalize_experiment(self, topo, vlan_no, gri, aid, alloc_id, proof): 421 421 """ 422 422 Place the relevant information in the global state block, and prepare … … 442 442 'topdldescription': rtopo.to_dict() 443 443 }, 444 'proof': proof.to_dict(), 444 445 } 445 446 retval = copy.deepcopy(self.state[aid]['started']) … … 462 463 aid = "%s" % auth_attr 463 464 attrs = req.get('fedAttr', []) 464 if not self.auth.check_attribute(fid, auth_attr): 465 access_ok, proof = self.auth.check_attribute(fid, auth_attr, 466 with_proof=True) 467 if not access_ok: 465 468 raise service_error(service_error.access, "Access denied") 466 469 else: … … 508 511 if gri: 509 512 return self.finalize_experiment(topo, vlan_no, gri, aid, 510 req['allocID'] )513 req['allocID'], proof) 511 514 elif err: 512 515 raise service_error(service_error.federant, … … 526 529 self.log.debug("Terminate request for %s" %aid) 527 530 attrs = req.get('fedAttr', []) 528 if not self.auth.check_attribute(fid, auth_attr): 531 access_ok, proof = self.auth.check_attribute(fid, auth_attr, 532 with_proof=True) 533 if not access_ok: 529 534 raise service_error(service_error.access, "Access denied") 530 535 … … 549 554 self.log.debug("Stop segment for GRI: %s" %gri) 550 555 self.stop_segment(user, gri) 551 return { 'allocID': req['allocID'] }556 return { 'allocID': req['allocID'], 'proof': proof.to_dict() }
Note: See TracChangeset
for help on using the changeset viewer.