net.clackrouter.topology.core
Class TopoRoutingTableCreator

java.lang.Object
  extended by net.clackrouter.topology.core.TopoRoutingTableCreator

public class TopoRoutingTableCreator
extends java.lang.Object

This creates niave routing tables based on individual hosts, subnets, in a topology.

This niave algorithm is basically dijkstra's shortest path, used to automatically populate routing tables.


Constructor Summary
TopoRoutingTableCreator()
           
 
Method Summary
static void setDefaultRoutingForHost(TopologyModel.Host host)
          Takes a host and adds a default route out eth0
static void setRouterLinkInfo(TopologyModel.Host host, java.util.ArrayList links)
           
static void setRouterTable(TopologyModel.Host host, java.util.ArrayList links)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopoRoutingTableCreator

public TopoRoutingTableCreator()
Method Detail

setRouterLinkInfo

public static void setRouterLinkInfo(TopologyModel.Host host,
                                     java.util.ArrayList links)

setDefaultRoutingForHost

public static void setDefaultRoutingForHost(TopologyModel.Host host)
Takes a host and adds a default route out eth0


setRouterTable

public static void setRouterTable(TopologyModel.Host host,
                                  java.util.ArrayList links)
                           throws java.lang.Exception
Throws:
java.lang.Exception