- Timestamp:
- Sep 4, 2008 11:20:54 AM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 4fc2250
- Parents:
- 4d48e01
- Location:
- fedd
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd.py
r4d48e01 rbcbf543 122 122 resp = self.server.impl.xmlrpc_dispatch(method, params, 123 123 fedid(cert=self.request.get_peer_cert())) 124 data = xmlrpclib.dumps((resp,), methodresponse=True) 124 data = xmlrpclib.dumps((resp,), encoding='UTF-8', 125 methodresponse=True) 125 126 except xmlrpclib.Fault, f: 126 127 data = xmlrpclib.dumps(f, methodresponse=True) -
fedd/fedd_create.py
r4d48e01 rbcbf543 288 288 289 289 try: 290 resp = port.RequestAccess({ 'CreateRequestBody': msg}) 291 resp, method = loads(resp) 292 resp = resp[0] 290 resp = port.Create({ 'CreateRequestBody': msg}) 293 291 except Error, e: 294 292 resp = { 'FeddFaultBody': \ -
fedd/fedd_create_experiment.py
r4d48e01 rbcbf543 467 467 self.element = { } 468 468 self.topo = { \ 469 'node s': { 'node': self.nodes },\470 'lan s' : { 'lan' : self.lans },\469 'node': self.nodes,\ 470 'lan' : self.lans,\ 471 471 } 472 472 self.chars = "" … … 517 517 try: 518 518 # Node names 519 nodes = [ n['vname'] for n in topo['node s']['node'] ]520 topo_lans = topo['lan s']['lan']519 nodes = [ n['vname'] for n in topo['node'] ] 520 topo_lans = topo['lan'] 521 521 except KeyError: 522 522 raise service_error(service_error.internal, "Bad topology") … … 582 582 vn = m.group(1) 583 583 vis_node = {'name': vn, \ 584 'x': int(m.group(2)),\585 'y' : int(m.group(3)),\584 'x': float(m.group(2)),\ 585 'y' : float(m.group(3)),\ 586 586 } 587 587 if vn in links.keys() or vn in lans.keys(): -
fedd/fedd_proj.py
r4d48e01 rbcbf543 577 577 578 578 if msg != None: 579 return xmlrpclib.dumps(({ "RequestAccessResponseBody": msg },))579 return { "RequestAccessResponseBody": msg } 580 580 else: 581 581 raise service_error(service_error.internal, 582 582 "No response generated?!"); 583 583 584 def xmlrpc_ RequestAccess(self, params, fid):584 def xmlrpc_Create(self, params, fid): 585 585 msg = self.create_experiment.create_experiment(params[0], fedid) 586 586 587 587 if msg != None: 588 return xmlrpclib.dumps(({ "CreateResponseBody": msg },))588 return { "CreateResponseBody" : msg } 589 589 else: 590 590 raise service_error(service_error.internal, -
fedd/fedd_types.xsd
r4d48e01 rbcbf543 170 170 </xsd:complexType> 171 171 172 <xsd:complexType name="vtoponodesType">173 <xsd:annotation>174 <xsd:documentation>175 Collection of nodes in the virtual topology of a federated experiment (emulab legacy)176 </xsd:documentation>177 </xsd:annotation>178 <xsd:sequence>179 <xsd:element name="node" type="tns:vtoponodeType" minOccurs="0"180 maxOccurs="unbounded"/>181 </xsd:sequence>182 </xsd:complexType>183 184 172 <xsd:complexType name="vtopolanType"> 185 173 <xsd:annotation> … … 198 186 </xsd:complexType> 199 187 200 <xsd:complexType name="vtopolansType"> 201 <xsd:annotation> 202 <xsd:documentation> 203 Collection of LAN in the virtual topology of a federated experiment (emulab legacy) 204 </xsd:documentation> 205 </xsd:annotation> 206 <xsd:sequence> 188 <xsd:complexType name="vtopoType"> 189 <xsd:annotation> 190 <xsd:documentation> 191 The virtual topology of a federated experiment (emulab legacy) 192 </xsd:documentation> 193 </xsd:annotation> 194 <xsd:sequence> 195 <xsd:element name="node" type="tns:vtoponodeType" minOccurs="0" 196 maxOccurs="unbounded" /> 207 197 <xsd:element name="lan" type="tns:vtopolanType" minOccurs="0" 208 198 maxOccurs="unbounded"/> 209 </xsd:sequence>210 </xsd:complexType>211 212 <xsd:complexType name="vtopoType">213 <xsd:annotation>214 <xsd:documentation>215 The virtual topology of a federated experiment (emulab legacy)216 </xsd:documentation>217 </xsd:annotation>218 <xsd:sequence>219 <xsd:element name="nodes" type="tns:vtoponodesType"/>220 <xsd:element name="lans" type="tns:vtopolansType"/>221 199 </xsd:sequence> 222 200 </xsd:complexType>
Note: See TracChangeset
for help on using the changeset viewer.