Added link port information to topology data.
diff --git a/web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java b/web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
index 4b2e93c..14795b2 100644
--- a/web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
+++ b/web/gui/src/main/java/org/onlab/onos/gui/TopologyResource.java
@@ -209,9 +209,13 @@
// Produces JSON for a link.
private ObjectNode json(ObjectMapper mapper, AggLink aggLink) {
Link link = aggLink.link;
+ ConnectPoint src = link.src();
+ ConnectPoint dst = link.dst();
return mapper.createObjectNode()
- .put("src", link.src().deviceId().toString())
- .put("dst", link.dst().deviceId().toString())
+ .put("src", src.deviceId().toString())
+ .put("srcPort", src.port().toString())
+ .put("dst", dst.deviceId().toString())
+ .put("dstPort", dst.port().toString())
.put("type", link.type().toString().toLowerCase())
.put("linkWidth", aggLink.links.size());
}