Changes between Version 19 and Version 20 of TopdlLibrary


Ignore:
Timestamp:
Oct 8, 2012 2:43:12 PM (12 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TopdlLibrary

    v19 v20  
    676676
    677677}}}
     678
     679== Changing a Topology (adding connections) ==
     680
     681This example shows how to change a topology by adding links.  This function adds a link between adjacent clusters of leaf nodes.  The code walks the topology, finding routers by their [TopdlLibrary#OperatingSystem OperatingSystem] assigned above.  For each router it finds, the code collects the leaves attached to that router (again, discriminating based on their OS) and collects them into a list.  There will be a list of leaves for each router, all in a list.  Then the code connects one computer from each per-router list to a computer in the adjacent router's list.
     682
     683The result is something that looks like this:
     684