ing
This commit is contained in:
parent
7ceea83e6c
commit
a0882b98d2
|
@ -153,8 +153,7 @@ public class CentralInfraService implements InfraService {
|
||||||
InfraHostIP eInfraHostIP = this.infraHostIPService.readByInfraHostInfraZoneIDAndMetaIPTypeKeyAndAddress(
|
InfraHostIP eInfraHostIP = this.infraHostIPService.readByInfraHostInfraZoneIDAndMetaIPTypeKeyAndAddress(
|
||||||
infraZone.getId(), infraHostIP.getMetaIPType().getKey(), host.getAddress());
|
infraZone.getId(), infraHostIP.getMetaIPType().getKey(), host.getAddress());
|
||||||
if (null != eInfraHostIP) {
|
if (null != eInfraHostIP) {
|
||||||
throw new OverflowException(String.format("IP[%s(%s)] of Zone[%s] is exist already", host.getAddress(),
|
return eInfraHostIP.getInfraHost();
|
||||||
infraHostIP.getMetaIPType().getName(), infraZone.getNetwork()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
InfraHost infraHost = new InfraHost();
|
InfraHost infraHost = new InfraHost();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user