- public InetAddress getControllerIdForSwitch(Long id) {
- //Added to enable Cluster handling.
-
- if(id==null)
- {
- logger.debug("id is null");
- return null;
+ public Status disconnect(Node node) {
+ ISwitch sw = getSwitch((Long)node.getID());
+ if (sw != null) {
+ if (sw instanceof EnhancedSwitchHandler) {
+ EnhancedSwitchHandler eSw = (EnhancedSwitchHandler)sw;
+ disconnectSwitch(sw, eSw.getSwitchChannelID());
+ }