Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
ISSUE
[controller.git]
/
opendaylight
/
switchmanager
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
switchmanager
/
SwitchConfig.java
diff --git
a/opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/SwitchConfig.java
b/opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/SwitchConfig.java
index 550ca69e7dd0fc21465e025c22678a5fea149bb2..758a99b8b083c9ded59ebe7457d3337b81a2f72d 100644
(file)
--- a/
opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/SwitchConfig.java
+++ b/
opendaylight/switchmanager/src/main/java/org/opendaylight/controller/switchmanager/SwitchConfig.java
@@
-49,6
+49,10
@@
public class SwitchConfig implements Serializable {
return mode;
}
+ public boolean isProactive() {
+ return Integer.parseInt(mode) != 0;
+ }
+
public static long getSerialversionuid() {
return serialVersionUID;
}