Changeset d87778f for fedd/federation
- Timestamp:
- Feb 14, 2010 12:04:40 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- c0a8738
- Parents:
- 94a00cb
- Location:
- fedd/federation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r94a00cb rd87778f 986 986 active = info.get('active', 'False') 987 987 988 989 988 cfn = "%s/%s.gw.conf" % (tmpdir, myname.lower()) 990 989 tunnelconfig = self.attrs.has_key('TunnelCfg') … … 992 991 f = open(cfn, "w") 993 992 if active == 'True': 993 print >>f, "active: True" 994 994 if type in ('control', 'both'): 995 995 for s in [s for s in services \ … … 1102 1102 elif node_cmd: 1103 1103 if e.get_attribute('startup'): 1104 s.set_attribute('startup', "%s \\$USER '%s'" % \1104 e.set_attribute('startup', "%s \\$USER '%s'" % \ 1105 1105 (node_cmd, e.get_attribute('startup'))) 1106 1106 else: 1107 s.set_attribute('startup', node_cmd)1107 e.set_attribute('startup', node_cmd) 1108 1108 1109 1109 # Remove portal interfaces that do not connect to DRAGON -
fedd/federation/experiment_control.py
r94a00cb rd87778f 1363 1363 be attached. 1364 1364 """ 1365 sproject = tbparams[st].get('project', 'project')1366 sdomain = tbparams[st].get('domain', ".example.com")1365 dproject = tbparams[dt].get('project', 'project') 1366 ddomain = tbparams[dt].get('domain', ".example.com") 1367 1367 mdomain = tbparams[master].get('domain', '.example.com') 1368 1368 mproject = tbparams[master].get('project', 'project') … … 1391 1391 "portal": myname, 1392 1392 'peer': "%s.%s.%s%s" % (desthost.lower(), eid.lower(), 1393 sproject.lower(), sdomain.lower()),1393 dproject.lower(), ddomain.lower()), 1394 1394 'fedAttr': [ 1395 1395 { 'attribute': 'masterdomain', 'value': mdomain}, 1396 1396 { 'attribute': 'masterexperiment', 'value': 1397 1397 "%s/%s" % (mproject, eid)}, 1398 { 'attribute': 'active', 'value': "%s" %active},1398 { 'attribute': 'active', 'value': active}, 1399 1399 # Move to SMB service description 1400 1400 { 'attribute': 'masteruser', 'value': muser},
Note: See TracChangeset
for help on using the changeset viewer.