Changeset c261c0f for fedd/federation/containers_access.py
- Timestamp:
- Feb 1, 2013 5:15:31 PM (11 years ago)
- Branches:
- master
- Children:
- e48d8eb
- Parents:
- f7fc551
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/containers_access.py
rf7fc551 rc261c0f 30 30 from deter import topdl 31 31 import list_log 32 import benito_segment32 import containers_segment 33 33 34 34 … … 56 56 emulab_access.__init__(self, config, auth) 57 57 58 self.containerize = config.get('access', 'containerize') 59 58 60 # Segment creation is where most of the differences are. 59 self.start_segment = benito_segment.start_segment60 self.stop_segment = benito_segment.stop_segment61 self.info_segment = benito_segment.info_segment61 self.start_segment = containers_segment.start_segment 62 self.stop_segment = containers_segment.stop_segment 63 self.info_segment = containers_segment.info_segment 62 64 63 65 # These are subroutines for StartSegment … … 65 67 """ 66 68 Benito is expecting a topdl file, so this routine is misnamed. It does 67 clean up the topdl, removing elements benitodoesn't understand and69 clean up the topdl, removing elements containers doesn't understand and 68 70 writing out the file. 69 71 """ … … 79 81 if isinstance(e, topdl.Segment): 80 82 t.elements.remove(e) 83 if not isinstance(e, topdl.Computer): continue 84 if e.get_attribute('portal'): 85 e.set_attribute('containers:node_type', 'embedded_pnode') 81 86 # Fix software paths 82 87 for s in getattr(e, 'software', []): … … 86 91 t.incorporate_elements() 87 92 88 # Convert to ns and write it out93 # Write it out 89 94 expfile = topdl.topology_to_xml(t, top='experiment') 90 95 try:
Note: See TracChangeset
for help on using the changeset viewer.