Changeset 29d5f7c for fedd/federation/emulab_access.py
- Timestamp:
- Nov 18, 2011 6:43:19 PM (12 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- 80b1e82
- Parents:
- 2ac64d1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r2ac64d1a r29d5f7c 1016 1016 the response that may need to be replayed, and return the response. 1017 1017 """ 1018 i = 0 1018 1019 # Copy the assigned names into the return topology 1019 embedding = [ ] 1020 for n in starter.node: 1021 embedding.append({ 1022 'toponame': n, 1023 'physname': ["%s%s" % (starter.node[n], self.domain)], 1024 }) 1020 for e in topo.elements: 1021 if isinstance(e, topdl.Computer): 1022 if not self.create_debug: 1023 if e.name in starter.node: 1024 e.localname.append("%s%s" % \ 1025 (starter.node[e.name], self.domain)) 1026 e.status = 'active' 1027 else: 1028 # Simple debugging assignment 1029 e.localname.append("node%d%s" % (i, self.domain)) 1030 e.status = 'active' 1031 e.operation.extend(('testop1', 'testop2')) 1032 i += 1 1033 1025 1034 # Grab the log (this is some anal locking, but better safe than 1026 1035 # sorry) … … 1036 1045 'topdldescription': topo.clone().to_dict() 1037 1046 }, 1038 'embedding': embedding,1039 1047 'proof': proof.to_dict(), 1040 1048 }
Note: See TracChangeset
for help on using the changeset viewer.