mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6485 prevent ipaddress asignment of gateway to gateway-interface on vpc router by setting vpcid to null in network
This commit is contained in:
parent
766f8216a0
commit
e474454c91
@ -606,7 +606,7 @@ public class NetworkVO implements Network {
|
||||
this.strechedL2Network = strechedL2Network;
|
||||
}
|
||||
|
||||
public void setVpcId(long vpcId) {
|
||||
public void setVpcId(Long vpcId) {
|
||||
this.vpcId = vpcId;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1654,7 +1654,7 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
||||
// A more permanent solution would be to define a type of 'gatewaynetwork'
|
||||
// so that handling code is not mixed between the two
|
||||
NetworkVO gatewaynet = _ntwkDao.findById(privateNtwk.getId());
|
||||
gatewaynet.setVpcId(vpcId);
|
||||
gatewaynet.setVpcId(null);
|
||||
_ntwkDao.persist(gatewaynet);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user