CLOUDSTACK-6485 prevent ip asignment of private gw iface

Prevent ipaddress asignment of gateway to gateway-interface on vpc router by setting vpcid to null in network

Was fixed in 4.4 by 1f209ff226
Reimplemented for 4.7
This commit is contained in:
Remi Bergsma 2015-12-31 14:20:52 +01:00
parent 9be76b350f
commit 2c07ce590d
1 changed files with 1 additions and 1 deletions

View File

@ -1668,7 +1668,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
final NetworkVO gatewaynet = _ntwkDao.findById(privateNtwk.getId());
gatewaynet.setVpcId(vpcId);
gatewaynet.setVpcId(null);
_ntwkDao.persist(gatewaynet);
}