ruby: network: correct naming of routers
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 6 Sep 2013 21:21:33 +0000 (16:21 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 6 Sep 2013 21:21:33 +0000 (16:21 -0500)
commite9ae8b7d29e83fa2cad55006d2c6dc58115965cc
treec418f84ec5ed77be77ca84de9517126b5cfa4ad6
parent24dc914d8758464ed6d757cf2830456562686be0
ruby: network: correct naming of routers

The routers are created before the network class. This results in the routers
becoming children of the first link they are connected to and they get generic
names like int_node and node_b. This patch creates the network object first
and passes it to the topology creation function. Now the routers are children
of the network object and names are much more sensible.
configs/ruby/Ruby.py
configs/topologies/BaseTopology.py
configs/topologies/Cluster.py
configs/topologies/Crossbar.py
configs/topologies/Mesh.py
configs/topologies/MeshDirCorners.py
configs/topologies/Pt2Pt.py
configs/topologies/Torus.py