Skip to content
Snippets Groups Projects
Commit 6dad6ba1 authored by Kuang-Ching Wang's avatar Kuang-Ching Wang
Browse files

Merge pull request #356 from kwanggithub/master

update IRoutingService javadoc
parents 3dc554ee 6222a55b
No related branches found
No related tags found
No related merge requests found
......@@ -24,17 +24,47 @@ import net.floodlightcontroller.routing.Route;
public interface IRoutingService extends IFloodlightService {
/** Provides a route between src and dst that allows tunnels. */
/**
* 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.
* @param src Source switch DPID.
* @param dst Destination switch DPID.
* @param cookie cookie (usage determined by implementation; ignored by topology instance now).
*/
public Route getRoute(long src, long dst, long cookie);
/** Provides a route between src and dst, with option to allow or
* not allow tunnels in the path.*/
/**
* Provides a route between src and dst, with option to allow or
* not allow tunnels in the path.
* @param src Source switch DPID.
* @param dst Destination switch DPID.
* @param cookie cookie (usage determined by implementation; ignored by topology instance now).
* @param tunnelEnabled boolean option.
*/
public Route getRoute(long src, long dst, long cookie, boolean tunnelEnabled);
/**
* Provides a route between srcPort on src and dstPort on dst.
* @param src Source switch DPID.
* @param srcPort Source port on source switch.
* @param dst Destination switch DPID.
* @param dstPort dstPort on Destination switch.
* @param cookie cookie (usage determined by implementation; ignored by topology instance now).
*/
public Route getRoute(long srcId, short srcPort,
long dstId, short dstPort, long cookie);
/**
* Provides a route between srcPort on src and dstPort on dst.
* @param src Source switch DPID.
* @param srcPort Source port on source switch.
* @param dst Destination switch DPID.
* @param dstPort dstPort on Destination switch.
* @param cookie cookie (usage determined by implementation; ignored by topology instance now).
* @param tunnelEnabled boolean option.
*/
public Route getRoute(long srcId, short srcPort,
long dstId, short dstPort, long cookie,
boolean tunnelEnabled);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment