use of org.onosproject.tl1.Tl1Device in project onos by opennetworkinglab.
the class DefaultTl1Controller method disconnectDevice.
@Override
public void disconnectDevice(DeviceId deviceId) {
// Ignore if unknown device
Tl1Device device = deviceMap.get(deviceId);
if (device == null) {
return;
}
Channel channel = device.channel();
if (channel != null) {
channel.close();
msgMap.remove(channel);
}
device.disconnect();
tl1Listeners.forEach(l -> l.deviceDisconnected(deviceId));
}
Aggregations