Merge pull request #818 from kansal/CLOUDSTACK-8844

Fixed: Network Update from RVR offering to Standalone offering failsProblem: Moving a RVR network offering to standalone makes the status of VR's as UNKNOWN and Redundant Router marked with YES.
Fix: The network's isRedundant was not getting updated.

* pr/818:
  CLOUDSTACK-8844: Network Update from RVR offering to Standalone offering fails - Fixed

Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
Remi Bergsma 2015-10-30 17:02:34 +01:00
commit 901d47c07e
2 changed files with 8 additions and 0 deletions

View File

@ -619,4 +619,9 @@ public class NetworkVO implements Network {
public void setVpcId(Long vpcId) {
this.vpcId = vpcId;
}
public void setIsReduntant(boolean reduntant) {
this.isRedundant = reduntant;
}
}

View File

@ -2100,6 +2100,9 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
}
restartNetwork = true;
networkOfferingChanged = true;
//Setting the new network's isReduntant to the new network offering's RedundantRouter.
network.setIsReduntant(_networkOfferingDao.findById(networkOfferingId).getRedundantRouter());
}
}