Fix ONOS UI doesn't expose CONTROLLER type device.
- Since the device such as OVSDB is registered as CONTROLLER and there's nothing to do with the device on UI.
- Also it has no connections with other devices.
- I suggest not to expose CONTROLLER-type devices.
Change-Id: I03566d2d29c1d3ddf8894d0799f33b7e84239d16
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandler.java b/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandler.java
index f8be6a8..1c16a44 100644
--- a/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandler.java
+++ b/web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandler.java
@@ -781,7 +781,7 @@
}
for (Device device : services.device().getDevices()) {
if ((device.type() != Device.Type.ROADM) &&
- (device.type() != Device.Type.OTN)) {
+ (device.type() != Device.Type.OTN) && device.type() != Device.Type.CONTROLLER) {
sendMessage(deviceMessage(new DeviceEvent(DEVICE_ADDED, device)));
}
}