- Timestamp:
- May 3, 2010 2:58:57 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- d20823f
- Parents:
- 8e54792
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_partition.py
r8e54792 rf3803ea 191 191 id= tbparams[dt]['allocID'], 192 192 type='emulab', 193 uri = self.tbmap.get( dt, None),193 uri = self.tbmap.get(testbed_base(dt), None), 194 194 interface=[ 195 195 topdl.Interface( … … 223 223 id = tbparams[tb]['allocID'], 224 224 type='emulab', 225 uri = self.tbmap.get(t b, None),225 uri = self.tbmap.get(testbed_base(tb), None), 226 226 interface=[ 227 227 topdl.Interface( … … 420 420 421 421 new_portal = False 422 dname = "_".join(split_testbed(dt)) 423 sname = "_".join(split_testbed(st)) 422 424 if portals[st].has_key(dt): 423 425 # There's a portal set up to go to this destination. … … 434 436 new_portal = True 435 437 portal_type = "experiment" 436 myname = "%stunnel%d" % (dt, len(portals[st][dt])) 437 desthost = "%stunnel%d" % (st.lower(), 438 myname = "%stunnel%d" % (dname.lower(), 439 len(portals[st][dt])) 440 desthost = "%stunnel%d" % (sname.lower(), 438 441 len(portals[st][dt])) 439 442 else: … … 452 455 new_portal = True 453 456 portals[st][dt] = [ ] 454 myname = "%stunnel%d" % (dt, len(portals[st][dt])) 455 desthost = "%stunnel%d" % (st.lower(), len(portals[st][dt])) 457 myname = "%stunnel%d" % (dname.lower(), 458 len(portals[st][dt])) 459 desthost = "%stunnel%d" % (sname.lower(), 460 len(portals[st][dt])) 456 461 457 462 if dt in masters or st in masters: portal_type = "both" … … 531 536 continue 532 537 538 base_tbs = set([testbed_base(t) for t in tbs]) 539 533 540 # DRAGON will not create multi-site vlans yet 534 if len(tbs) == 2 and \541 if len(tbs) == 2 and len(base_tbs) == 2 and \ 535 542 all([tbparams[x].has_key('dragon') for x in tbs]): 536 543 self.create_dragon_substrate(s, topo, tbs, tbparams,
Note: See TracChangeset
for help on using the changeset viewer.