Changeset f725eda for fedd


Ignore:
Timestamp:
Nov 8, 2013 4:47:29 PM (6 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
6b439fa
Parents:
27c5f3e
Message:

Allow risky access - need to be made tighter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r9a52a80 rf725eda  
    474474                return ""
    475475            else:
    476                 return 'tb-fix-node ${%s} %s' % (topdl.to_tcl_name(e.name), fn)
     476                return 'tb-fix-node ${%s} %s\n' % (topdl.to_tcl_name(e.name), fn)
     477
     478        def output_external_access(e):
     479            '''
     480            Allow nodes that have explicit external access requests attached to
     481            have external access.  This will be replaced by a real risky
     482            experiment filter.
     483            '''
     484            if not isinstance(e, topdl.Computer): return ""
     485            ex = e.get_attribute('containers:external')
     486            if ex is None:
     487                return ""
     488            else:
     489                return 'tb-allow-external ${%s}\n' % topdl.to_tcl_name(e.name)
    477490
    478491        # Weed out the things we aren't going to instantiate: Segments, portal
     
    518531
    519532        # Customize the ns2 output for local portal commands and images
    520         filters = [output_fixed_filter]
     533        filters = [output_fixed_filter, output_external_access]
    521534
    522535        if self.dragon_endpoint:
Note: See TracChangeset for help on using the changeset viewer.