Search in sources :

Example 1 with VnicWithBadMacPredicate

use of org.ovirt.engine.core.bll.network.predicate.VnicWithBadMacPredicate in project ovirt-engine by oVirt.

the class ImportVmCommandBase method vNicHasBadMac.

protected boolean vNicHasBadMac(VmNetworkInterface vnic) {
    MacPool macPool = getMacPool();
    Predicate<VmNetworkInterface> vnicWithBadMacPredicate = new VnicWithBadMacPredicate(macPool);
    return vnicWithBadMacPredicate.test(vnic);
}
Also used : MacPool(org.ovirt.engine.core.bll.network.macpool.MacPool) VmNetworkInterface(org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface) VnicWithBadMacPredicate(org.ovirt.engine.core.bll.network.predicate.VnicWithBadMacPredicate)

Aggregations

MacPool (org.ovirt.engine.core.bll.network.macpool.MacPool)1 VnicWithBadMacPredicate (org.ovirt.engine.core.bll.network.predicate.VnicWithBadMacPredicate)1 VmNetworkInterface (org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface)1