Mike Kolesnik has posted comments on this change.

Change subject: engine: Consider case-sensitivity for mac-address uniqueness
......................................................................


Patch Set 1:

(1 comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/MacPoolManager.java
Line 298:             if (allocatedMacs.containsKey(mac) || 
allocatedCustomMacs.containsKey(mac)) {
Line 299:                 return true;
Line 300:             }
Line 301: 
Line 302:             for (String macAddress : allocatedMacs.keySet()) {
Optionally you can use org.apache.commons.collections.map.CaseInsensitiveMap
Line 303:                 if (StringUtils.equalsIgnoreCase(macAddress, mac)) {
Line 304:                     return true;
Line 305:                 }
Line 306:             }


-- 
To view, visit http://gerrit.ovirt.org/18490
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I57516cc710648b37a9cebcdfce592c2418a7e192
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to