Search in sources :

Example 1 with NetworkInSyncWithVdsNetworkInterface

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);
    }
}
Also used : ReportedConfigurations(org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations) Network(org.ovirt.engine.core.common.businessentities.network.Network) VdsNetworkInterface(org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface) NetworkInSyncWithVdsNetworkInterface(org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface) NetworkInSyncWithVdsNetworkInterface(org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface)

Example 2 with NetworkInSyncWithVdsNetworkInterface

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()));
}
Also used : HostNetworkQos(org.ovirt.engine.core.common.businessentities.network.HostNetworkQos) Cluster(org.ovirt.engine.core.common.businessentities.Cluster) NetworkInSyncWithVdsNetworkInterface(org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface) Guid(org.ovirt.engine.core.compat.Guid)

Aggregations

NetworkInSyncWithVdsNetworkInterface (org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface)2 Cluster (org.ovirt.engine.core.common.businessentities.Cluster)1 HostNetworkQos (org.ovirt.engine.core.common.businessentities.network.HostNetworkQos)1 Network (org.ovirt.engine.core.common.businessentities.network.Network)1 ReportedConfigurations (org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations)1 VdsNetworkInterface (org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface)1 Guid (org.ovirt.engine.core.compat.Guid)1