commit | e6e91870e8fb4e4309419994ac7579c71474d41f | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Sat Apr 13 11:10:32 2013 -0700 |
committer | Jonathan Hart <jono@onlab.us> | Sat Apr 13 11:10:32 2013 -0700 |
tree | f02891f6640b92477edc89102a76e3cc79443cd6 | |
parent | fa3ee3c43efa4dedc396823a70d21b5d7f2c4ba2 [diff] [blame] |
Fix REST data being out of date and causing fluctuating flows, links and switches
diff --git a/src/main/java/net/floodlightcontroller/linkdiscovery/internal/TopoLinkServiceImpl.java b/src/main/java/net/floodlightcontroller/linkdiscovery/internal/TopoLinkServiceImpl.java index c493887..1bd6421 100644 --- a/src/main/java/net/floodlightcontroller/linkdiscovery/internal/TopoLinkServiceImpl.java +++ b/src/main/java/net/floodlightcontroller/linkdiscovery/internal/TopoLinkServiceImpl.java
@@ -34,6 +34,7 @@ public List<Link> getActiveLinks() { // TODO Auto-generated method stub conn = GraphDBConnection.getInstance(""); + conn.close(); //Commit to ensure we see latest data Iterable<ISwitchObject> switches = conn.utils().getActiveSwitches(conn); List<Link> links = new ArrayList<Link>(); for (ISwitchObject sw : switches) {