Changeset 5d854e1 for fedd/fedd_image.py
- Timestamp:
- Sep 21, 2010 3:12:16 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 3bf0b3c
- Parents:
- 87807f42
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_image.py
r87807f42 r5d854e1 181 181 raise RuntimeError("Bad response. %s" % e.message) 182 182 183 def get_experiment_topo(opts, cert ):183 def get_experiment_topo(opts, cert, url): 184 184 """ 185 185 Get the topology of an existing experiment from a running fedd. That is, … … 204 204 req = { 'experiment': exp_id } 205 205 resp_dict = do_rpc(req, 206 opts.url, opts.transport, cert, opts.trusted,206 url, opts.transport, cert, opts.trusted, 207 207 serialize_only=opts.serialize_only, 208 208 tracefile=opts.tracefile, … … 211 211 return extract_topo_from_message(resp_dict, opts.serialize_only) 212 212 213 def get_file_topo(opts, cert ):213 def get_file_topo(opts, cert, url): 214 214 """ 215 215 Parse a topology file or convert an ns2 file into a topdl.Topology. XML … … 238 238 if opts.debug > 1: print >>sys.stderr, msg 239 239 resp_dict = do_rpc(msg, 240 opts.url, opts.transport, cert, opts.trusted,240 url, opts.transport, cert, opts.trusted, 241 241 serialize_only=opts.serialize_only, 242 242 tracefile=opts.tracefile, … … 252 252 # not be a big deal. It's checked if needed below 253 253 try: 254 cert, fid = wrangle_standard_options(opts)254 cert, fid, url = wrangle_standard_options(opts) 255 255 except RuntimeError, e: 256 256 cert = None … … 285 285 sys.exit("Couldn't find an identity certificate, RPC (Info) needed.") 286 286 try: 287 top = get_experiment_topo(opts, cert )287 top = get_experiment_topo(opts, cert, url) 288 288 except RPCException, e: 289 289 exit_with_fault(e) … … 296 296 % opts.file 297 297 try: 298 top = get_file_topo(opts, cert )298 top = get_file_topo(opts, cert, url) 299 299 except RPCException, e: 300 300 print >>sys.stderr, "Cannot extract a topology from %s" % opts.file
Note: See TracChangeset
for help on using the changeset viewer.