- Timestamp:
- Nov 8, 2013 4:47:29 PM (11 years ago)
- Branches:
- master
- Children:
- 6b439fa
- Parents:
- 27c5f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r27c5f3e rf725eda 474 474 return "" 475 475 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) 477 490 478 491 # Weed out the things we aren't going to instantiate: Segments, portal … … 518 531 519 532 # Customize the ns2 output for local portal commands and images 520 filters = [output_fixed_filter ]533 filters = [output_fixed_filter, output_external_access] 521 534 522 535 if self.dragon_endpoint:
Note: See TracChangeset
for help on using the changeset viewer.