Thomas Vachuska

Added ability to configure reactive forwarding.

...@@ -65,7 +65,8 @@ public class ReactiveForwarding { ...@@ -65,7 +65,8 @@ public class ReactiveForwarding {
65 65
66 private ApplicationId appId; 66 private ApplicationId appId;
67 67
68 - @Property(name = "enabled", boolValue = true, label = "Forwarding enabled") 68 + @Property(name = "enabled", boolValue = true,
69 + label = "Enable forwarding; default is true")
69 private boolean isEnabled = true; 70 private boolean isEnabled = true;
70 71
71 @Activate 72 @Activate
...@@ -94,7 +95,8 @@ public class ReactiveForwarding { ...@@ -94,7 +95,8 @@ public class ReactiveForwarding {
94 if (!isEnabled) { 95 if (!isEnabled) {
95 flowRuleService.removeFlowRulesById(appId); 96 flowRuleService.removeFlowRulesById(appId);
96 } 97 }
97 - log.info("Reconfigured enabled = {}", isEnabled); 98 + log.info("Reconfigured. Forwarding is {}",
99 + isEnabled ? "enabled" : "disabled");
98 } 100 }
99 } 101 }
100 } 102 }
...@@ -207,7 +209,6 @@ public class ReactiveForwarding { ...@@ -207,7 +209,6 @@ public class ReactiveForwarding {
207 builder.build(), treat.build(), PRIORITY, appId, TIMEOUT); 209 builder.build(), treat.build(), PRIORITY, appId, TIMEOUT);
208 210
209 flowRuleService.applyFlowRules(f); 211 flowRuleService.applyFlowRules(f);
210 -
211 } 212 }
212 213
213 } 214 }
......