Skip to content

Commit 901d47c

Browse files
committed
Merge pull request apache#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>
2 parents beaed0e + e24eccc commit 901d47c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,4 +619,9 @@ public void setStrechedL2Network(boolean strechedL2Network) {
619619
public void setVpcId(Long vpcId) {
620620
this.vpcId = vpcId;
621621
}
622+
623+
public void setIsReduntant(boolean reduntant) {
624+
this.isRedundant = reduntant;
625+
}
626+
622627
}

‎server/src/com/cloud/network/NetworkServiceImpl.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,9 @@ public Network updateGuestNetwork(final long networkId, String name, String disp
21002100
}
21012101
restartNetwork = true;
21022102
networkOfferingChanged = true;
2103+
2104+
//Setting the new network's isReduntant to the new network offering's RedundantRouter.
2105+
network.setIsReduntant(_networkOfferingDao.findById(networkOfferingId).getRedundantRouter());
21032106
}
21042107
}
21052108

0 commit comments

Comments
 (0)