net.floodlightcontroller.routing
Interface IRoutingService

All Superinterfaces:
IFloodlightService
All Known Implementing Classes:
TopologyManager

public interface IRoutingService
extends IFloodlightService


Method Summary
 Route getRoute(long srcId, int srcPort, long dstId, int dstPort, long cookie)
          Provides a route between srcPort on src and dstPort on dst.
 Route getRoute(long srcId, int srcPort, long dstId, int dstPort, long cookie, boolean tunnelEnabled)
          Provides a route between srcPort on src and dstPort on dst.
 Route getRoute(long src, long dst, long cookie)
          Provides a route between src and dst that allows tunnels.
 Route getRoute(long src, long dst, long cookie, boolean tunnelEnabled)
          Provides a route between src and dst, with option to allow or not allow tunnels in the path.
 java.util.ArrayList<Route> getRoutes(long longSrcDpid, long longDstDpid, boolean tunnelEnabled)
          return all routes, if available
 boolean routeExists(long src, long dst)
          Check if a route exists between src and dst, including tunnel links in the path.
 boolean routeExists(long src, long dst, boolean tunnelEnabled)
          Check if a route exists between src and dst, with option to have or not have tunnels as part of the path.
 

Method Detail

getRoute

Route getRoute(long src,
               long dst,
               long cookie)
Provides a route between src and dst that allows tunnels. The cookie is provisioned for callers of getRoute to provide additional information to influence the route to be returned, if the underlying routing implementation supports choice among multiple routes.

Parameters:
src - Source switch DPID.
dst - Destination switch DPID.
cookie - cookie (usage determined by implementation; ignored by topology instance now).

getRoute

Route getRoute(long src,
               long dst,
               long cookie,
               boolean tunnelEnabled)
Provides a route between src and dst, with option to allow or not allow tunnels in the path.

Parameters:
src - Source switch DPID.
dst - Destination switch DPID.
cookie - cookie (usage determined by implementation; ignored by topology instance now).
tunnelEnabled - boolean option.

getRoute

Route getRoute(long srcId,
               int srcPort,
               long dstId,
               int dstPort,
               long cookie)
Provides a route between srcPort on src and dstPort on dst.

Parameters:
src - Source switch DPID.
srcPort - Source port on source switch.
dst - Destination switch DPID.
dstPort - dstPort on Destination switch.
cookie - cookie (usage determined by implementation; ignored by topology instance now).

getRoute

Route getRoute(long srcId,
               int srcPort,
               long dstId,
               int dstPort,
               long cookie,
               boolean tunnelEnabled)
Provides a route between srcPort on src and dstPort on dst.

Parameters:
src - Source switch DPID.
srcPort - Source port on source switch.
dst - Destination switch DPID.
dstPort - dstPort on Destination switch.
cookie - cookie (usage determined by implementation; ignored by topology instance now).
tunnelEnabled - boolean option.

getRoutes

java.util.ArrayList<Route> getRoutes(long longSrcDpid,
                                     long longDstDpid,
                                     boolean tunnelEnabled)
return all routes, if available


routeExists

boolean routeExists(long src,
                    long dst)
Check if a route exists between src and dst, including tunnel links in the path.


routeExists

boolean routeExists(long src,
                    long dst,
                    boolean tunnelEnabled)
Check if a route exists between src and dst, with option to have or not have tunnels as part of the path.