[VOL-4246] Feature parity with the previous implementation
Change-Id: I3741edb3c1b88b1cf8b5e6d4ff0900132e2e5e6a
diff --git a/impl/src/main/java/org/opencord/olt/cli/ShowOltCommand.java b/impl/src/main/java/org/opencord/olt/cli/ShowOltCommand.java
index 08aaa48..c379116 100644
--- a/impl/src/main/java/org/opencord/olt/cli/ShowOltCommand.java
+++ b/impl/src/main/java/org/opencord/olt/cli/ShowOltCommand.java
@@ -40,9 +40,9 @@
protected void doExecute() {
AccessDeviceService service = AbstractShellCommand.get(AccessDeviceService.class);
if (outputJson()) {
- print("%s", json(service.fetchOlts()));
+ print("%s", json(service.getConnectedOlts()));
} else {
- service.fetchOlts().forEach(did -> print("OLT %s", did));
+ service.getConnectedOlts().forEach(did -> print("OLT %s", did));
}
}
@@ -62,4 +62,4 @@
}
return node;
}
-}
+}
\ No newline at end of file