Aneesha Pailla
Committed by Gerrit Code Review

Bug fix for ONOS-4491

Change-Id: I5088b3ec219fd2b44e74c9cbba70cbfb7addad84
...@@ -371,7 +371,8 @@ public class DeviceManager ...@@ -371,7 +371,8 @@ public class DeviceManager
371 371
372 List<PortDescription> descs = ports.stream().map( 372 List<PortDescription> descs = ports.stream().map(
373 port -> (!(Device.Type.ROADM.equals(device.type()) || 373 port -> (!(Device.Type.ROADM.equals(device.type()) ||
374 - (Device.Type.OTN.equals(device.type())))) ? 374 + (Device.Type.OTN.equals(device.type())) ||
375 + (Device.Type.FIBER_SWITCH.equals(device.type())))) ?
375 new DefaultPortDescription(port.number(), false, 376 new DefaultPortDescription(port.number(), false,
376 port.type(), port.portSpeed()) : 377 port.type(), port.portSpeed()) :
377 OpticalPortOperator.descriptionOf(port, false) 378 OpticalPortOperator.descriptionOf(port, false)
......