use of org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface in project ovirt-engine by oVirt.
the class ReportedConfigurationsFiller method fillReportedConfigurations.
private void fillReportedConfigurations(Map<String, VdsNetworkInterface> networkNameToNicMap, BusinessEntityMap<Network> networkMap, NetworkAttachment networkAttachment, DnsResolverConfiguration reportedDnsResolverConfiguration, Cluster cluster) {
Network network = networkMap.get(networkAttachment.getNetworkId());
VdsNetworkInterface nic = getNicToWhichIsNetworkAttached(networkNameToNicMap, networkMap, networkAttachment);
if (nic != null) {
NetworkInSyncWithVdsNetworkInterface isInSync = createNetworkInSyncWithVdsNetworkInterface(networkAttachment, nic, network, reportedDnsResolverConfiguration, cluster);
ReportedConfigurations reportedConfigurations = isInSync.reportConfigurationsOnHost();
networkAttachment.setReportedConfigurations(reportedConfigurations);
}
}
use of org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface in project ovirt-engine by oVirt.
the class NetworkImplementationDetailsUtils method build.
private NetworkInSyncWithVdsNetworkInterface build(NetworkAttachment networkAttachment, VdsNetworkInterface vdsNetworkInterface, Network network) {
Guid vdsId = vdsNetworkInterface.getVdsId();
Cluster cluster = getCluster(vdsId);
HostNetworkQos hostNetworkQos = effectiveHostNetworkQos.getQos(networkAttachment, network);
return new NetworkInSyncWithVdsNetworkInterface(vdsNetworkInterface, network, hostNetworkQos, networkAttachment, vdsDynamicDao.get(vdsId).getReportedDnsResolverConfiguration(), cluster, defaultRouteUtil.isDefaultRouteNetwork(network.getId(), cluster.getId()));
}
Aggregations