Skip to content
Snippets Groups Projects
Commit 50712e44 authored by Sudeep Modi's avatar Sudeep Modi
Browse files

Add an API to set a hard timeout in routing decision

parent edb9fe3a
No related branches found
No related tags found
No related merge requests found
......@@ -54,4 +54,6 @@ public interface IRoutingDecision {
public void setMulticastInterfaces(List<SwitchPort> lspt);
public Integer getWildcards();
public void setWildcards(Integer wildcards);
public short getHardTimeout();
public void setHardTimeout(short hardTimeout);
}
......@@ -29,6 +29,7 @@ public class RoutingDecision implements IRoutingDecision {
protected RoutingAction action;
protected Integer wildcards;
protected short hardTimeout;
protected SwitchPort srcPort;
protected IDevice srcDevice;
protected List<IDevice> destDevices;
......@@ -46,6 +47,7 @@ public class RoutingDecision implements IRoutingDecision {
Collections.synchronizedList(new ArrayList<SwitchPort>());
this.action = action;
this.wildcards = null;
this.hardTimeout = ForwardingBase.FLOWMOD_DEFAULT_HARD_TIMEOUT;
}
@Override
......@@ -100,6 +102,16 @@ public class RoutingDecision implements IRoutingDecision {
this.wildcards = wildcards;
}
@Override
public short getHardTimeout() {
return hardTimeout;
}
@Override
public void setHardTimeout(short hardTimeout) {
this.hardTimeout = hardTimeout;
}
@Override
public void addToContext(FloodlightContext cntx) {
rtStore.put(cntx, IRoutingDecision.CONTEXT_DECISION, this);
......
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