parent
29eba3970e
commit
3d50cdacb7
|
@ -93,14 +93,10 @@ public class ValidAddCapacityInfoImpl implements ConstraintValidator<ValidAddCap
|
||||||
for (String s : addCapacityInfo.getProtectIp().split(DisposeConfigValue.SPLIT_CHAR)) {
|
for (String s : addCapacityInfo.getProtectIp().split(DisposeConfigValue.SPLIT_CHAR)) {
|
||||||
if (!Pattern.matches(ConstValue.IP_ADDR_SEGMENT_REG, s.replace(" ", ""))) {
|
if (!Pattern.matches(ConstValue.IP_ADDR_SEGMENT_REG, s.replace(" ", ""))) {
|
||||||
errMsg.add("字段 protectIp 包含非法值: " + s);
|
errMsg.add("字段 protectIp 包含非法值: " + s);
|
||||||
sum += 1;
|
ret = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sum > 0){
|
|
||||||
ret = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addCapacityInfo.getReserveNetflow() == null) {
|
if (addCapacityInfo.getReserveNetflow() == null) {
|
||||||
|
|
Loading…
Reference in New Issue