net.clackrouter.topology.core
Class TopoRoutingTableCreator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopoRoutingTableCreator
public TopoRoutingTableCreator()
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