- Timestamp:
- Mar 5, 2012 4:40:35 PM (13 years ago)
- Branches:
- compt_changes, master
- Children:
- a3b31ed
- Parents:
- 6527d60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r6527d60 r9e5e251 825 825 self.response = None 826 826 self.node = { } 827 self.subs = { } 827 828 self.proof = None 828 829 … … 839 840 if isinstance(e, topdl.Computer): 840 841 self.node[e.name] = e 842 for s in top.substrates: 843 self.subs[s.name] = s 841 844 842 845 def __call__(self, uri, aid, topo, masters, attrs=None, connInfo=None): … … 1042 1045 if ne.os: merge_oses(ne, e) 1043 1046 break 1047 # Annotate substrates 1048 for s in top.substrates: 1049 for d in data: 1050 ss = d.subs.get(s.name, None) 1051 if ss is not None: 1052 if ss.capacity is not None: 1053 s.capacity = ss.capacity 1054 if s.latency is not None: 1055 s.latency = ss.latency 1044 1056 1045 1057
Note: See TracChangeset
for help on using the changeset viewer.