Skip to content
Snippets Groups Projects
Commit 07b3a341 authored by Vishnu Emmadi's avatar Vishnu Emmadi
Browse files

add cli for configuring idle/hard timeout for flows globally

add fields to forwardingconfig model in bigcon to hold idle/hard timeouts
add storage listeners for these 2 columns in bigfloodlight's forwarding
parent 8cccb549
No related branches found
No related tags found
No related merge requests found
......@@ -417,7 +417,8 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule {
this.routingEngine = context.getServiceImpl(IRoutingService.class);
this.topology = context.getServiceImpl(ITopologyService.class);
this.counterStore = context.getServiceImpl(ICounterStoreService.class);
/*
// read our config options
Map<String, String> configOptions = context.getConfigParams(this);
try {
......@@ -444,6 +445,7 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule {
FLOWMOD_DEFAULT_IDLE_TIMEOUT);
log.debug("FlowMod hard timeout set to {} seconds",
FLOWMOD_DEFAULT_HARD_TIMEOUT);
*/
try {
AppCookie.registerApp(FORWARDING_APP_ID, "Forwarding");
} catch (AppIDInUseException e) {
......
......@@ -75,6 +75,9 @@ public abstract class ForwardingBase
public static short FLOWMOD_DEFAULT_IDLE_TIMEOUT = 5; // in seconds
public static short FLOWMOD_DEFAULT_HARD_TIMEOUT = 0; // infinite
public static final short FLOWMOD_DEFAULT_IDLE_TIMEOUT_CONSTANT = 5;
public static final short FLOWMOD_DEFAULT_HARD_TIMEOUT_CONSTANT = 0;
protected IFloodlightProviderService floodlightProvider;
protected IDeviceService deviceManager;
protected IRoutingService routingEngine;
......
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