commit | cfbaaa1fdae655b7bf860ba633902f02cddd294b | [log] [tgz] |
---|---|---|
author | Naoki Shiota <n-shiota@onlab.us> | Thu Jan 09 21:11:49 2014 -0800 |
committer | Naoki Shiota <n-shiota@onlab.us> | Thu Jan 09 21:11:49 2014 -0800 |
tree | 7fa3f4e846e3dbc8226166acc93f499b25886f01 | |
parent | 9e68971b2bb5ac95d82635e18ba88fb1558ecf1a [diff] | |
parent | 007eaf3bbb030c03fc932427dedb30a6ebd7e39d [diff] |
Merge branch 'ONOS-ONRC2014-Measurements' of https://github.com/OPENNETWORKINGLAB/ONOS into topodev
diff --git a/src/main/java/net/onrc/onos/ofcontroller/topology/Topology.java b/src/main/java/net/onrc/onos/ofcontroller/topology/Topology.java index 92da9ba..20c85ab 100644 --- a/src/main/java/net/onrc/onos/ofcontroller/topology/Topology.java +++ b/src/main/java/net/onrc/onos/ofcontroller/topology/Topology.java
@@ -416,6 +416,7 @@ } else if (obj instanceof Integer) { myPort = (Integer)obj; } + me.addPort(myPort); // // The neighbor Port info @@ -446,6 +447,7 @@ Node neighbor = nodesMap.get(neighborId); if (neighbor == null) neighbor = addNode(neighborId); + neighbor.addPort(neighborPort); me.addLink(myPort, neighbor, neighborPort); } }