Began integration with ONOS discovery code by implementing add switch and add link
Change-Id: I21426ea7031df20701d186cb2840a380fa334728
Made NetworkGraphModule to provide access to the global NetworkGraph instance
Change-Id: Ie2293b97f9fb6bdeaa5140c244a21c107d5e1ca7
diff --git a/src/main/java/net/onrc/onos/ofcontroller/networkgraph/INetworkGraphService.java b/src/main/java/net/onrc/onos/ofcontroller/networkgraph/INetworkGraphService.java
new file mode 100644
index 0000000..71a5d53
--- /dev/null
+++ b/src/main/java/net/onrc/onos/ofcontroller/networkgraph/INetworkGraphService.java
@@ -0,0 +1,23 @@
+package net.onrc.onos.ofcontroller.networkgraph;
+
+import net.floodlightcontroller.core.module.IFloodlightService;
+
+/**
+ * Interface for providing the Network Graph Service to other modules.
+ */
+public interface INetworkGraphService extends IFloodlightService {
+ /**
+ * Allows a module to get a reference to the global network graph object.
+ * @return
+ */
+ public NetworkGraph getNetworkGraph();
+
+ /**
+ * Allows a module to get a reference to the southbound interface to
+ * the network graph.
+ * TODO Figure out how to hide the southbound interface from
+ * applications/modules that shouldn't touch it
+ * @return
+ */
+ public SouthboundNetworkGraph getSouthboundNetworkGraph();
+}