Changeset e794984
- Timestamp:
- Sep 6, 2009 3:25:23 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-2.00, version-3.01, version-3.02
- Children:
- 895a133
- Parents:
- e19b75c
- Location:
- fedd/federation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/access.py
re19b75c re794984 68 68 self.ssh_privkey_file = config.get("access","ssh_privkey_file") 69 69 self.create_debug = config.getboolean("access", "create_debug") 70 print self.create_debug71 70 72 71 self.attrs = { } … … 1362 1361 1363 1362 def TerminateSegment(self, req, fid): 1364 print "In terminate"1365 1363 try: 1366 1364 req = req['TerminateSegmentRequestBody'] … … 1371 1369 aid = "%s" % auth_attr 1372 1370 attrs = req.get('fedAttr', []) 1373 print "in terminate %s" % auth_attr1374 1371 if not self.auth.check_attribute(fid, auth_attr): 1375 print "access denied"1376 1372 raise service_error(service_error.access, "Access denied") 1377 1373 -
fedd/federation/experiment_control.py
re19b75c re794984 967 967 968 968 def __call__(self, uri, aid ): 969 print "in terminate_segment: %s" % aid970 969 req = { 971 970 'allocID': aid , … … 1397 1396 for f in ("hosts", gw_secretkey_base, gw_pubkey_base): 1398 1397 self.auth.set_attribute(asignee, "%s/%s" % (configpath, f)) 1399 print "assigned %s/%s" % (configpath, f)1400 1398 1401 1399 # Now, for each substrate in the main topology, find those that … … 1724 1722 1725 1723 def get_handler(self, path, fid): 1726 print "%s" % path1727 1724 if self.auth.check_attribute(fid, path): 1728 1725 return ("%s/%s" % (self.repodir, path), "application/binary") … … 1974 1971 for fed in fed_exp.get('federant', []): 1975 1972 try: 1976 print "looking at %s" % fed1977 1973 tb = fed['emulab']['project']['testbed']['localname'] 1978 1974 aid = fed['allocID'] 1979 1975 except KeyError, e: 1980 print "Key error: %s" %e1981 1976 continue 1982 1977 tbparams[tb] = aid
Note: See TracChangeset
for help on using the changeset viewer.