Ignore:
Timestamp:
Apr 28, 2010 4:09:53 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
12658df
Parents:
05fceef
Message:

New syntax for testbeds that includes a /instance rider. This allows users to
request multiple segments from a single testbed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_partition.py

    r05fceef rab847bc  
    212212                    "Cannot DRAGON split substrate w/o capacity")
    213213        segs = [ ]
    214         substr = topdl.Substrate(name="dragon%d" % idx,
     214        name = join_testbed("dragon", "%d" % idx)
     215        substr = topdl.Substrate(name=name,
    215216                capacity=sub.capacity.clone(),
    216217                attribute=[ topdl.Attribute(attribute=n, value=v)
    217218                    for n, v, in (\
    218219                            ('vlan', 'unassigned%d' % idx),)])
    219         name = "dragon%d" % idx
    220220        store_key = 'fedid:%s/vlan%d' % (expid, idx)
    221221        for tb in tbs.keys():
     
    574574                                id= tbparams[mtb]['allocID'],
    575575                                type='emulab',
    576                                 uri = self.tbmap.get(master, None),
     576                                uri = self.tbmap.get(testbed_base(mtb), None),
    577577                                interface=[
    578578                                    topdl.Interface(
     
    603603                                id= tbparams[tb]['allocID'],
    604604                                type='emulab',
    605                                 uri = self.tbmap.get(tb, None),
     605                                uri = self.tbmap.get(testbed_base(tb), None),
    606606                                interface=[
    607607                                    topdl.Interface(
     
    625625                        topo[mtb].elements.append(portal)
    626626                        topo[mtb].elements.append(seg)
    627                         for t in (master, tb):
     627                        for t in (mtb, tb):
    628628                            topo[t].incorporate_elements()
    629629
Note: See TracChangeset for help on using the changeset viewer.