Changeset 7e67ab9 for fedd


Ignore:
Timestamp:
Apr 28, 2010 10:09:36 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
8e54792
Parents:
12658df
Message:

Add an explicit way to say "export this to everyone" (importall service)

Location:
fedd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r12658df r7e67ab9  
    14961496                    'name': 'project_export',
    14971497                    'export': [opts.master],
     1498                    'importall': True,
    14981499                    'fedAttr': [
    14991500                        { 'attribute': 'project', 'value': opts.project },
  • fedd/federation/experiment_control.py

    r12658df r7e67ab9  
    16901690            masters = { }           # testbeds exporting services
    16911691            for s in tb_services:
    1692                 # If this is a project_export request with the imports field
    1693                 # blank, fill it in.
    1694                 if s.get('name', '') == 'project_export':
    1695                     if 'import' not in s or len(s['import']) == 0:
    1696                         s['import'] = [ tb for tb in testbeds \
    1697                                 if tb not in s.get('export',[])]
     1692                # If this is a project_export request with the importall field
     1693                # set, fill it out.
     1694
     1695                if s.get('importall', False):
     1696                    s['import'] = [ tb for tb in testbeds \
     1697                            if tb not in s.get('export',[])]
     1698                    del s['importall']
     1699
    16981700                # Add the service to masters
    16991701                for tb in s.get('export', []):
Note: See TracChangeset for help on using the changeset viewer.