commit | f08d5ff881c1b61867c6a14486c85ef881ff2417 | [log] [tgz] |
---|---|---|
author | Pankaj Berde <pankaj@onlab.us> | Thu Mar 14 17:03:07 2013 -0700 |
committer | Pankaj Berde <pankaj@onlab.us> | Thu Mar 14 17:03:07 2013 -0700 |
tree | 4e3235ae3704137797c5ffe00754da9a08ea9f6f | |
parent | 8849a66f43ff914ae82c1554c6bb6ec7d65fb0f0 [diff] |
Implemented Cleanup thread to periodically detect inactive switches
diff --git a/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java b/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java index 7345084..2c220fd 100644 --- a/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java +++ b/src/main/java/net/onrc/onos/registry/controller/StandaloneRegistry.java
@@ -91,7 +91,7 @@ @Override public String getControllerForSwitch(long dpid) throws RegistryException { - return controllerId; + return (switchCallbacks.get(HexString.toHexString(dpid)) != null)? controllerId: null; } @Override