Ignore:
Timestamp:
Feb 1, 2013 5:15:31 PM (11 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
e48d8eb
Parents:
f7fc551
Message:

Moving to new name and creating real federation connections

File:
1 moved

Legend:

Unmodified
Added
Removed
  • fedd/federation/containers_access.py

    rf7fc551 rc261c0f  
    3030from deter import topdl
    3131import list_log
    32 import benito_segment
     32import containers_segment
    3333
    3434
     
    5656        emulab_access.__init__(self, config, auth)
    5757
     58        self.containerize = config.get('access', 'containerize')
     59
    5860        # Segment creation is where most of the differences are.
    59         self.start_segment = benito_segment.start_segment
    60         self.stop_segment = benito_segment.stop_segment
    61         self.info_segment = benito_segment.info_segment
     61        self.start_segment = containers_segment.start_segment
     62        self.stop_segment = containers_segment.stop_segment
     63        self.info_segment = containers_segment.info_segment
    6264
    6365    # These are subroutines for StartSegment
     
    6567        """
    6668        Benito is expecting a topdl file, so this routine is misnamed.  It does
    67         clean up the topdl, removing elements benito doesn't understand and
     69        clean up the topdl, removing elements containers doesn't understand and
    6870        writing out the file.
    6971        """
     
    7981            if isinstance(e, topdl.Segment):
    8082                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')
    8186            # Fix software paths
    8287            for s in getattr(e, 'software', []):
     
    8691        t.incorporate_elements()
    8792
    88         # Convert to ns and write it out
     93        # Write it out
    8994        expfile = topdl.topology_to_xml(t, top='experiment')
    9095        try:
Note: See TracChangeset for help on using the changeset viewer.