Lior Vernia has posted comments on this change.

Change subject: core: dont fail on empty ranges
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/35391/1/backend/manager/tools/src/main/java/org/ovirt/engine/core/config/entity/helper/MacAddressPoolRangesValueHelper.java
File 
backend/manager/tools/src/main/java/org/ovirt/engine/core/config/entity/helper/MacAddressPoolRangesValueHelper.java:

Line 25:     @Override
Line 26:     public ValidationResult validate(ConfigKey key, String value) {
Line 27: 
Line 28:         if (StringUtils.isBlank(value)) {
Line 29:             return new ValidationResult(true);
> if a user provides a range which contains no valid mac address, how can we 
As I said, a range with zero MAC addresses is just as valid as a range with a 
single MAC address. The former means no MAC addresses will be auto-allocated, 
the latter that only one can be auto-allocated.

The flow you described is the same for having a pool with N addresses which had 
been exhausted. Yes, that's the point at which you discover you have no 
addresses to automatically allocate.
Line 30:         }
Line 31: 
Line 32:         try {
Line 33:             List<String[]> rangesBoundaries = 
MacAddressRangeUtils.rangeStringToStringBoundaries(value);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I314ff9e62d7515eae334c461a67ce609ca188359
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
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