Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix NPEs on switch disconnect in cluster mode
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
ForwardingMode.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ForwardingMode.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ForwardingMode.java
index a1d4ff9db735476fa593f0fe2f2c577b13b9d473..1b19f19778ddba6c21ae8437d5e06be44b7d3898 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ForwardingMode.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/ForwardingMode.java
@@
-71,4
+71,9
@@
public class ForwardingMode extends Property {
public String toString() {
return "Mode[" + modeValue + "]";
}
+
+ @Override
+ public String getStringValue() {
+ return (modeValue == ForwardingMode.PROACTIVE_FORWARDING) ? "Proactive" : "Reactive";
+ }
}
\ No newline at end of file