Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Thomas Vachuska
2014-10-16 08:49:17 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
28dfb6096d798f811cb6937a6fe3894596fb133f
28dfb609
1 parent
335ef46c
Added ability to configure reactive forwarding.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
apps/fwd/src/main/java/org/onlab/onos/fwd/ReactiveForwarding.java
apps/fwd/src/main/java/org/onlab/onos/fwd/ReactiveForwarding.java
View file @
28dfb60
...
...
@@ -65,7 +65,8 @@ public class ReactiveForwarding {
private
ApplicationId
appId
;
@Property
(
name
=
"enabled"
,
boolValue
=
true
,
label
=
"Forwarding enabled"
)
@Property
(
name
=
"enabled"
,
boolValue
=
true
,
label
=
"Enable forwarding; default is true"
)
private
boolean
isEnabled
=
true
;
@Activate
...
...
@@ -94,7 +95,8 @@ public class ReactiveForwarding {
if
(!
isEnabled
)
{
flowRuleService
.
removeFlowRulesById
(
appId
);
}
log
.
info
(
"Reconfigured enabled = {}"
,
isEnabled
);
log
.
info
(
"Reconfigured. Forwarding is {}"
,
isEnabled
?
"enabled"
:
"disabled"
);
}
}
}
...
...
@@ -207,7 +209,6 @@ public class ReactiveForwarding {
builder
.
build
(),
treat
.
build
(),
PRIORITY
,
appId
,
TIMEOUT
);
flowRuleService
.
applyFlowRules
(
f
);
}
}
...
...
Please
register
or
login
to post a comment