Changeset 319fb0a


Ignore:
Timestamp:
Sep 19, 2012 4:15:26 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
de059e1
Parents:
8212638
Message:

Respect requests for fixed nodes - users better know what theyre doing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r8212638 r319fb0a  
    468468                        "Missing connectivity info")
    469469
     470        def output_fixed_filter(e):
     471            if not isinstance(e, topdl.Computer): return ""
     472            fn = e.get_attribute('fixed')
     473            if fn is None:
     474                return ""
     475            else:
     476                return 'tb-fix-node ${%s} %s' % (topdl.to_tcl_name(e.name), fn)
     477
    470478        # Weed out the things we aren't going to instantiate: Segments, portal
    471479        # substrates, and portal interfaces.  (The copy in the for loop allows
     
    510518
    511519        # Customize the ns2 output for local portal commands and images
    512         filters = []
     520        filters = [output_fixed_filter]
    513521
    514522        if self.dragon_endpoint:
Note: See TracChangeset for help on using the changeset viewer.