Changeset 7e67ab9


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)

Files:
3 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', []):
  • wsdl/fedd_types.xsd

    r12658df r7e67ab9  
    433433      <xsd:element name="export" type="xsd:string"
    434434        minOccurs="0" maxOccurs="unbounded"/>
    435       <xsd:element name="import" type="xsd:string"
    436         minOccurs="0" maxOccurs="unbounded"/>
     435      <xsd:choice>
     436        <xsd:element name="import" type="xsd:string"
     437          minOccurs="0" maxOccurs="unbounded"/>
     438        <xsd:element name="importall" type="xsd:boolean"/>
     439      </xsd:choice>
    437440      <xsd:element name="fedAttr" type="tns:fedAttrType" minOccurs="0"
    438441        maxOccurs="unbounded"/>
Note: See TracChangeset for help on using the changeset viewer.