Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
60b363a0
Commit
60b363a0
authored
12 years ago
by
Kanzhe Jiang
Browse files
Options
Downloads
Patches
Plain Diff
enable/disable flowReconcile from property setting
parent
93fc17be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/flowcache/FlowReconcileManager.java
+19
-0
19 additions, 0 deletions
.../floodlightcontroller/flowcache/FlowReconcileManager.java
with
19 additions
and
0 deletions
src/main/java/net/floodlightcontroller/flowcache/FlowReconcileManager.java
+
19
−
0
View file @
60b363a0
...
...
@@ -33,6 +33,10 @@ public class FlowReconcileManager
* need to be reconciled with the current configuration of the controller.
*/
protected
ListenerDispatcher
<
OFType
,
IFlowReconcileListener
>
flowReconcileListeners
;
/** Config to enable or disable flowReconcile */
protected
static
final
String
EnableConfigKey
=
"enable"
;
protected
boolean
flowReconcileEnabled
;
@Override
public
synchronized
void
addFlowReconcileListener
(
IFlowReconcileListener
listener
)
{
...
...
@@ -65,6 +69,10 @@ public class FlowReconcileManager
* @param ofmRcIn the ofm rc in
*/
public
void
reconcileFlow
(
OFMatchReconcile
ofmRcIn
)
{
if
(!
flowReconcileEnabled
)
{
return
;
}
if
(
logger
.
isTraceEnabled
())
{
logger
.
trace
(
"Reconciling flow: {}"
,
ofmRcIn
.
toString
());
}
...
...
@@ -145,6 +153,17 @@ public class FlowReconcileManager
throws
FloodlightModuleException
{
flowReconcileListeners
=
new
ListenerDispatcher
<
OFType
,
IFlowReconcileListener
>();
Map
<
String
,
String
>
configParam
=
context
.
getConfigParams
(
this
);
String
enableValue
=
configParam
.
get
(
EnableConfigKey
);
// Set flowReconcile default to true
flowReconcileEnabled
=
true
;
if
(
enableValue
!=
null
&&
enableValue
.
equalsIgnoreCase
(
"false"
))
{
flowReconcileEnabled
=
false
;
}
logger
.
debug
(
"FlowReconcile is {}"
,
flowReconcileEnabled
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment