[SEBA-815]Multi Tcont support by OLT app.
[VOL-2525] Fixing the OLT app meter removal and optimizing the bandwith profile to meter map with a Multimap
Change-Id: I024ef2fcb3d3e59cc86bd2088726ae513fcff796
diff --git a/app/src/main/java/org/opencord/olt/cli/ShowProgrammedSubscribersCommand.java b/app/src/main/java/org/opencord/olt/cli/ShowProgrammedSubscribersCommand.java
index 22acb57..413272b 100644
--- a/app/src/main/java/org/opencord/olt/cli/ShowProgrammedSubscribersCommand.java
+++ b/app/src/main/java/org/opencord/olt/cli/ShowProgrammedSubscribersCommand.java
@@ -21,9 +21,10 @@
import org.onosproject.cli.AbstractShellCommand;
import org.onosproject.net.ConnectPoint;
import org.opencord.olt.AccessDeviceService;
-import org.opencord.sadis.SubscriberAndDeviceInformation;
+import org.opencord.sadis.UniTagInformation;
import java.util.Map;
+import java.util.Set;
/**
* Shows subscriber information for those subscriber which have been programmed
@@ -37,11 +38,12 @@
@Override
protected void doExecute() {
AccessDeviceService service = AbstractShellCommand.get(AccessDeviceService.class);
- Map<ConnectPoint, SubscriberAndDeviceInformation> info = service.getProgSubs();
+ Map<ConnectPoint, Set<UniTagInformation>> info = service.getProgSubs();
info.forEach(this::display);
}
- private void display(ConnectPoint cp, SubscriberAndDeviceInformation sub) {
- print("location=%s subscriber=%s", cp, sub);
+ private void display(ConnectPoint cp, Set<UniTagInformation> uniTagInformation) {
+ uniTagInformation.forEach(uniTag ->
+ print("location=%s tagInformation=%s", cp, uniTag));
}
}