if (clientIp != null && serverIp != null) {
List<HostRoutes> subnetHostRoutes = new ArrayList<>();
if (subnet.getHostRoutes() != null && !subnet.getHostRoutes().isEmpty()) {
- for (HostRoutes hostRoute : subnet.getHostRoutes()) {
+ for (HostRoutes hostRoute : subnet.getHostRoutes().values()) {
if (!hostRoute.getNexthop().stringValue().equals(clientIp)) {
subnetHostRoutes.add(hostRoute);
}
@Nullable
private static String getIpv4Address(Port port) {
- for (FixedIps fixedIp : port.nonnullFixedIps()) {
+ for (FixedIps fixedIp : port.nonnullFixedIps().values()) {
if (isIpv4Address(fixedIp.getIpAddress())) {
return fixedIp.getIpAddress().getIpv4Address().getValue();
}
LOG.warn("RPC Call to Get egress actions for interface {} returned with Errors {}",
interfaceName, rpcResult.getErrors());
} else {
- return rpcResult.getResult().getAction();
+ return new ArrayList<Action>(rpcResult.getResult().getAction().values());
}
} else {
GetEgressActionsForInterfaceInputBuilder egressAction =
LOG.warn("RPC Call to Get egress actions for interface {} returned with Errors {}",
interfaceName, rpcResult.getErrors());
} else {
- return rpcResult.getResult().getAction();
+ return new ArrayList<Action>(rpcResult.getResult().getAction().values());
}
}
} catch (InterruptedException | ExecutionException e) {