Skip to content

Commit b581f85

Browse files
Pearl1594DaanHoogland
authored andcommitted
fixed inconsistency of IP on VR when VR is destroyed and recrea… (#3825)
1 parent b79a539 commit b581f85

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

server/src/main/java/com/cloud/network/NetworkModelImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,10 @@ public NicVO getPlaceholderNicForRouter(Network network, Long podId) {
22982298
} else {
22992299
ipv6 = _ipv6Dao.findByNetworkIdAndIp(network.getId(), nic.getIPv6Address());
23002300
}
2301+
2302+
if (vlans.isEmpty()) {
2303+
return nic;
2304+
}
23012305
//return nic only when its ip address belong to the pod range (for the Basic zone case)
23022306
for (Vlan vlan : vlans) {
23032307
if (ip != null && ip.getVlanId() == vlan.getId()) {

0 commit comments

Comments
 (0)