mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fixed inconsistency of IP on VR when VR is destroyed and recrea… (#3825)
This commit is contained in:
parent
b79a539191
commit
b581f85d4b
@ -2298,6 +2298,10 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel, Confi
|
||||
} else {
|
||||
ipv6 = _ipv6Dao.findByNetworkIdAndIp(network.getId(), nic.getIPv6Address());
|
||||
}
|
||||
|
||||
if (vlans.isEmpty()) {
|
||||
return nic;
|
||||
}
|
||||
//return nic only when its ip address belong to the pod range (for the Basic zone case)
|
||||
for (Vlan vlan : vlans) {
|
||||
if (ip != null && ip.getVlanId() == vlan.getId()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user