Skip to content

Commit 1f209ff

Browse files
committed
CLOUDSTACK-6485 prevent ipaddress asignment of gateway to gateway-interface on vpc router by setting vpcid to null in network
1 parent 84a14f6 commit 1f209ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎engine/schema/src/com/cloud/network/dao/NetworkVO.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public void setStrechedL2Network(boolean strechedL2Network) {
606606
this.strechedL2Network = strechedL2Network;
607607
}
608608

609-
public void setVpcId(long vpcId) {
609+
public void setVpcId(Long vpcId) {
610610
this.vpcId = vpcId;
611611
}
612612
}

‎server/src/com/cloud/network/vpc/VpcManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ public VpcGatewayVO doInTransaction(TransactionStatus status) throws ResourceAll
16321632
// A more permanent solution would be to define a type of 'gatewaynetwork'
16331633
// so that handling code is not mixed between the two
16341634
NetworkVO gatewaynet = _ntwkDao.findById(privateNtwk.getId());
1635-
gatewaynet.setVpcId(vpcId);
1635+
gatewaynet.setVpcId(null);
16361636
_ntwkDao.persist(gatewaynet);
16371637
}
16381638

0 commit comments

Comments
 (0)