Added shortest-path computation tool:

admin@deva-onos1:~/ONOS/web$ ./get_network_graph.py shortest-path 00:00:00:00:00:00:02:01 00:00:00:00:00:00:04:01
[
    {
        "src-switch": "00:00:00:00:00:00:02:01",
        "src-port": 51,
        "dst-switch": "00:00:00:00:00:00:01:02",
        "dst-port": 4
    },
    {
        "src-switch": "00:00:00:00:00:00:01:02",
        "src-port": 3,
        "dst-switch": "00:00:00:00:00:00:01:03",
        "dst-port": 2
    },
    {
        "src-switch": "00:00:00:00:00:00:01:03",
        "src-port": 3,
        "dst-switch": "00:00:00:00:00:00:01:04",
        "dst-port": 2
    },
    {
        "src-switch": "00:00:00:00:00:00:01:04",
        "src-port": 5,
        "dst-switch": "00:00:00:00:00:00:04:01",
        "dst-port": 26
    }
]

Removed extra (empty) new line in the web/get_datagrid_ngevents.py output

Change-Id: I5ac8981447fbe26a26b812e8d811f902665123d7
diff --git a/src/main/java/net/onrc/onos/ofcontroller/networkgraph/web/NetworkGraphWebRoutable.java b/src/main/java/net/onrc/onos/ofcontroller/networkgraph/web/NetworkGraphWebRoutable.java
index 6a7ab99..e245801 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/networkgraph/web/NetworkGraphWebRoutable.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/networkgraph/web/NetworkGraphWebRoutable.java
@@ -16,6 +16,7 @@
 		router.attach("/rc/ports/json", RamcloudPortsResource.class);
 		router.attach("/ng/switches/json", NetworkGraphSwitchesResource.class);
 		router.attach("/ng/links/json", NetworkGraphLinksResource.class);
+		router.attach("/ng/shortest-path/{src-dpid}/{dst-dpid}/json", NetworkGraphShortestPathResource.class);
 		return router;
 	}