use of org.ovirt.engine.core.bll.network.VmInterfaceManager in project ovirt-engine by oVirt.
the class VmDeviceUtils method canPlugInterface.
private boolean canPlugInterface(VmNic iface, VmBase vmBase) {
ReadMacPool macPool = macPoolPerCluster.getMacPoolForCluster(vmBase.getClusterId());
VmInterfaceManager vmIfaceManager = new VmInterfaceManager();
if (vmIfaceManager.tooManyPluggedInterfaceWithSameMac(iface, macPool)) {
vmIfaceManager.auditLogMacInUseUnplug(iface, vmBase.getName());
return false;
} else {
return true;
}
}
Aggregations