Changeset 222290f
- Timestamp:
- May 29, 2009 5:15:39 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- b8a9fb7
- Parents:
- 0648279
- Location:
- fedd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r0648279 r222290f 197 197 self.splitter_url = config.get("experiment_control", "splitter_uri") 198 198 self.fedkit = config.get("experiment_control", "fedkit") 199 self.gatewaykit = config.get("experiment_control", "gatewaykit") 199 200 accessdb_file = config.get("experiment_control", "accessdb") 200 201 … … 1068 1069 'description' : { 'ns2description': desc }, 1069 1070 'master': master, 1070 'include_fedkit': bool(self.fedkit) 1071 'include_fedkit': bool(self.fedkit), 1072 'include_gatewaykit': bool(self.gatewaykit) 1071 1073 } 1072 1074 … … 1090 1092 subsittuted line by line. 1091 1093 """ 1092 def __init__(self, eid, tmpdir, fedkit ):1094 def __init__(self, eid, tmpdir, fedkit, gatewaykit): 1093 1095 self.begin_testbed = re.compile("^#\s+Begin\s+Testbed\s+\((\w+)\)") 1094 1096 self.end_testbed = re.compile("^#\s+End\s+Testbed\s+\((\w+)\)") … … 1113 1115 self.tmpdir = tmpdir 1114 1116 self.fedkit = fedkit 1117 self.gatewaykit = gatewaykit 1115 1118 1116 1119 def __call__(self, line, master, allocated, tbparams): … … 1195 1198 line = re.sub("FEDKIT", os.path.basename(self.fedkit), 1196 1199 line) 1200 if self.gatewaykit: 1201 line = re.sub("GATEWAYKIT", 1202 os.path.basename(self.gatewaykit), line) 1197 1203 print >>self.testbed_file, line 1198 1204 return True … … 1650 1656 tclcmd.append('-k') 1651 1657 1658 if self.gatewaykit: 1659 tclcmd.append('-K') 1660 1652 1661 tclcmd.extend([pid, gid, eid, tclfile]) 1653 1662 … … 1662 1671 # Objects to parse the splitter output (defined above) 1663 1672 parse_current_testbed = self.current_testbed(eid, tmpdir, 1664 self.fedkit )1673 self.fedkit, self.gatewaykit) 1665 1674 parse_allbeds = self.allbeds(self.get_access) 1666 1675 parse_gateways = self.gateways(eid, master, tmpdir, … … 1722 1731 if self.fedkit: 1723 1732 parse_tarfiles.list.append(self.fedkit) 1733 if self.gatewaykit: 1734 parse_tarfiles.list.append(self.gatewaykit) 1724 1735 for t in parse_tarfiles.list: 1725 1736 if not os.path.exists("%s/tarfiles" % tmpdir): -
fedd/wsdl/fedd_types.xsd
r0648279 r222290f 583 583 <xsd:element name="master" type="xsd:string"/> 584 584 <xsd:element name="include_fedkit" type="xsd:bool"/> 585 <xsd:element name="include_gatewaykit" type="xsd:bool"/> 585 586 </xsd:sequence> 586 587 </xsd:complexType>
Note: See TracChangeset
for help on using the changeset viewer.