Changeset a7c0bcb for fedd/federation


Ignore:
Timestamp:
Dec 6, 2010 5:51:09 PM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
ac15159, c179764, cd60510
Parents:
35a5879
Message:

Allow users to pass topdl to fedd_create.py. fedd_create autodetects and composes the proper message. The experiment controller now just takes the topology as given.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r35a5879 ra7c0bcb  
    15581558        descr=req.get('experimentdescription', None)
    15591559        if descr:
    1560             file_content=descr.get('ns2description', None)
     1560            if 'ns2description' in descr:
     1561                file_content=descr['ns2description']
     1562            elif 'topdldescription' in descr:
     1563                return topdl.Topology(**descr['topdldescription'])
     1564            else:
     1565                raise service_error(service_error.req,
     1566                        'Unknown experiment description type')
    15611567        else:
    15621568            raise service_error(service_error.req, "No experiment description")
Note: See TracChangeset for help on using the changeset viewer.