Merge branch 'master' of https://github.com/OPENNETWORKINGLAB/ONOS
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java
index b942aae..bacfd5d 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowManager.java
@@ -147,7 +147,12 @@
l.add(IDatagridService.class);
l.add(IRestApiService.class);
l.add(IFlowPusherService.class);
- l.add(IForwardingService.class);
+ //
+ // TODO: Comment-out the dependency on the IForwardingService,
+ // because it is an optional module. Apparently, adding the dependency
+ // here automatically enables the module.
+ //
+ // l.add(IForwardingService.class);
return l;
}
@@ -450,7 +455,13 @@
* @param flowPaths the collection of installed Flow Paths.
*/
void notificationFlowPathsInstalled(Collection<FlowPath> flowPaths) {
- forwardingService.flowsInstalled(flowPaths);
+ //
+ // TODO: Add an explicit check for null pointer, because
+ // the IForwardingService is optional. Remove the "if" statement
+ // after hte Forwarding Module becomes mandatory.
+ //
+ if (forwardingService != null)
+ forwardingService.flowsInstalled(flowPaths);
}
/**