import java.util.Arrays;
import java.util.List;
+import java.util.Map;
import java.util.concurrent.Future;
import javax.inject.Inject;
import org.eclipse.xtext.xbase.lib.Pair;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.acl.live.statistics.rev161129.GetAclPortStatisticsInputBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.acl.live.statistics.rev161129.GetAclPortStatisticsOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.acl.live.statistics.rev161129.acl.stats.output.AclPortStats;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.acl.live.statistics.rev161129.acl.stats.output.AclPortStatsKey;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.acl.live.statistics.rev161129.acl.stats.output.acl.port.stats.AclDropStats;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig.SecurityGroupMode;
GetAclPortStatisticsOutput aclPortStats = output.getResult();
assertNotNull(aclPortStats);
- List<AclPortStats> lstAclPortStats = aclPortStats.getAclPortStats();
- assertNotNull(lstAclPortStats);
- assertFalse(lstAclPortStats.isEmpty());
- for (AclPortStats stats : lstAclPortStats) {
+ Map<AclPortStatsKey, AclPortStats> aclPortStatsKeyAclPortStatsMap = aclPortStats.getAclPortStats();
+ assertNotNull(aclPortStatsKeyAclPortStatsMap);
+ assertFalse(aclPortStatsKeyAclPortStatsMap.isEmpty());
+ for (AclPortStats stats : aclPortStatsKeyAclPortStatsMap.values()) {
List<AclDropStats> aclDropStats = stats.getAclDropStats();
if (stats.getInterfaceName().equals(PORT_1)) {
assertNotNull(aclDropStats);