mirror of https://github.com/apache/cloudstack.git
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
8204a44890
commit
29aeed71fc
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1666,7 +1666,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…
Reference in New Issue