Changeset 5a6b75b for fedd


Ignore:
Timestamp:
Dec 2, 2008 8:44:41 AM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
08329f4
Parents:
5fffd82
Message:

multiple uri aliases for the testbed

Location:
fedd/federation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/access.py

    r5fffd82 r5a6b75b  
    3838    bool_attrs = ("project_priority", "allow_proxy")
    3939    emulab_attrs = ("boss", "ops", "domain", "fileserver", "eventserver")
    40     id_attrs = ("testbed", "proxy",
     40    id_attrs = ("proxy",
    4141            "proxy_cert_file", "proxy_cert_pwd", "proxy_trusted_certs",
    4242            "project_allocation_uri", "project_allocation_cert_file",
     
    9696            auth = authorizer()
    9797
    98         self.fedid_default = "testbed"
     98        tb = config.get('access', 'testbed')
     99        if tb: self.testbed = [ t.strip() for t in tb.split(',') ]
     100        else: self.testbed = [ ]
     101
    99102        if config.has_option("access", "accessdb"):
    100103            self.read_access(config.get("access", "accessdb"))
     
    544547            dt = unpack_id(req['destinationTestbed'])
    545548
    546         if dt == None or dt == self.testbed:
     549        if dt == None or dt in self.testbed:
    547550            # Request for this fedd
    548551            found, dyn, owners = self.lookup_access(req, fid)
     
    701704            dt = None
    702705
    703         if dt == None or dt == self.testbed:
     706        if dt == None or dt in self.testbed:
    704707            # Local request
    705708            try:
  • fedd/federation/deter_impl.py

    r5fffd82 r5a6b75b  
    5353                        experiment_control_local(config, self.auth)
    5454                # Tell the experiment control where local access control is and
    55                 # what testbed it pertains to.
     55                # what testbeds it pertains to.
    5656                if self.access:
    57                     self.experiment.local_access[self.access.testbed] = \
    58                             self.access
     57                    for t in self.access.testbed:
     58                        self.experiment.local_access[t] = self.access
    5959
    6060                self.soap_services.update(self.experiment.soap_services)
Note: See TracChangeset for help on using the changeset viewer.