use of org.ovirt.engine.core.bll.validator.IsRoleNetworkIpConfigurationValid in project ovirt-engine by oVirt.
the class NetworkClusterValidatorBase method findMissingIpNic.
private VdsNetworkInterface findMissingIpNic(final String networkName) {
IsRoleNetworkIpConfigurationValid isRoleNetworkIpConfigurationValid = new IsRoleNetworkIpConfigurationValid(networkCluster);
final List<VdsNetworkInterface> interfacesByClusterId = interfaceDao.getAllInterfacesByClusterId(networkCluster.getClusterId());
final VdsNetworkInterface missingIpNic = interfacesByClusterId.stream().filter(nic -> networkName.equals(nic.getNetworkName())).filter(isRoleNetworkIpConfigurationValid::isIpAddressMissingForRole).findFirst().orElse(null);
return missingIpNic;
}
Aggregations