Skip to content
Snippets Groups Projects
Commit 766aa0c3 authored by Banse, Christian's avatar Banse, Christian
Browse files

minor changes in variable name and description of flag to include

SEND_FLOW_REM in flow mod
parent 2e5c187e
No related branches found
No related tags found
No related merge requests found
......@@ -472,8 +472,8 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule {
}
tmp = configParameters.get("set-send-flow-rem-flag");
if (tmp != null) {
FLOWMOD_SET_SEND_FLOW_REM_FLAG = Boolean.parseBoolean(tmp);
log.info("Default flags will include SEND_FLOW_REM.");
FLOWMOD_DEFAULT_SET_SEND_FLOW_REM_FLAG = Boolean.parseBoolean(tmp);
log.info("Default flags will be set to SEND_FLOW_REM.");
} else {
log.info("Default flags will be empty.");
}
......
......@@ -86,7 +86,7 @@ public abstract class ForwardingBase implements IOFMessageListener {
public static int FLOWMOD_DEFAULT_HARD_TIMEOUT = 0; // infinite
public static int FLOWMOD_DEFAULT_PRIORITY = 1; // 0 is the default table-miss flow in OF1.3+, so we need to use 1
public static boolean FLOWMOD_SET_SEND_FLOW_REM_FLAG = false;
public static boolean FLOWMOD_DEFAULT_SET_SEND_FLOW_REM_FLAG = false;
public static boolean FLOWMOD_DEFAULT_MATCH_VLAN = true;
public static boolean FLOWMOD_DEFAULT_MATCH_MAC = true;
......@@ -269,7 +269,7 @@ public abstract class ForwardingBase implements IOFMessageListener {
aob.setMaxLen(Integer.MAX_VALUE);
actions.add(aob.build());
if(FLOWMOD_SET_SEND_FLOW_REM_FLAG) {
if(FLOWMOD_DEFAULT_SET_SEND_FLOW_REM_FLAG) {
Set<OFFlowModFlags> flags = new HashSet<>();
flags.add(OFFlowModFlags.SEND_FLOW_REM);
fmb.setFlags(flags);
......
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