Ignore:
Timestamp:
Mar 4, 2012 8:20:31 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
9e5e251
Parents:
8cab4c2
Message:

Improved info gathering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r8cab4c2 r6527d60  
    771771                            (info.node[e.name].pname, self.domain),),
    772772                            e.localname)
     773                        add_new(("%s%s" %
     774                            (info.node[e.name].lname, self.domain),),
     775                            e.localname)
    773776                        e.status = info.node[e.name].status
    774777                        os = info.node[e.name].getOS()
     
    780783                    add_new(('testop1', 'testop2'), e.operation)
    781784                    i += 1
     785
     786        for s in t.substrates:
     787            if s.name in info.subs:
     788                sub = info.subs[s.name]
     789                if sub.cap is not None:
     790                    s.capacity = topdl.Capacity(sub.cap, 'max')
     791                if sub.delay is not None:
     792                    s.delay = topdl.Latency(sub.delay, 'max')
     793        # XXX interfaces
    782794
    783795
Note: See TracChangeset for help on using the changeset viewer.