Adding logging for PlanCalc and Install
Change-Id: Id69e7893f3e6dd2ad1bd695476ecdbc346f0ea12
diff --git a/src/main/java/net/onrc/onos/intent/runtime/PlanInstallModule.java b/src/main/java/net/onrc/onos/intent/runtime/PlanInstallModule.java
index 45facb5..efe0116 100644
--- a/src/main/java/net/onrc/onos/intent/runtime/PlanInstallModule.java
+++ b/src/main/java/net/onrc/onos/intent/runtime/PlanInstallModule.java
@@ -8,6 +8,9 @@
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import net.floodlightcontroller.core.IFloodlightProviderService;
import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.core.module.FloodlightModuleException;
@@ -29,6 +32,8 @@
private PlanCalcRuntime planCalc;
private PlanInstallRuntime planInstall;
private EventListener eventListener;
+ private final static Logger log = LoggerFactory.getLogger(PlanInstallModule.class);
+
private static final String PATH_INTENT_CHANNEL_NAME = "onos.pathintent";
@@ -64,12 +69,15 @@
}
private void processIntents(IntentOperationList intents) {
+ log.debug("Processing OperationList {}", intents);
List<Set<FlowEntry>> plan = planCalc.computePlan(intents);
+ log.debug("Plan: {}", plan);
planInstall.installPlan(plan);
}
@Override
public void entryAdded(IntentOperationList value) {
+ log.debug("Added OperationList {}", value);
intentQueue.add(value);
}