Skip to content

Commit 1f29313

Browse files
Nitin Kumar Maharanayadvr
authored andcommitted
CLOUDSTACK-10002: Restart network with cleanup spawns Redundant Routers(In Default Network Offering) (#2186)
The setter name is different from what it should be used by update call.
1 parent 7f987ac commit 1f29313

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class NetworkVO implements Network {
6767
String name;
6868

6969
@Column(name = "display_text")
70-
String displayText;;
70+
String displayText;
7171

7272
@Column(name = "broadcast_uri")
7373
URI broadcastUri;
@@ -299,14 +299,18 @@ public State getState() {
299299
return state;
300300
}
301301

302+
// don't use this directly when possible, use Network state machine instead
303+
public void setState(State state) {
304+
this.state = state;
305+
}
306+
302307
@Override
303308
public boolean isRedundant() {
304309
return this.redundant;
305310
}
306311

307-
// don't use this directly when possible, use Network state machine instead
308-
public void setState(State state) {
309-
this.state = state;
312+
public void setRedundant(boolean redundant) {
313+
this.redundant = redundant;
310314
}
311315

312316
@Override
@@ -630,9 +634,4 @@ public void setStrechedL2Network(boolean strechedL2Network) {
630634
public void setVpcId(Long vpcId) {
631635
this.vpcId = vpcId;
632636
}
633-
634-
public void setIsReduntant(boolean reduntant) {
635-
this.redundant = reduntant;
636-
}
637-
638637
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,7 +2121,7 @@ public Network updateGuestNetwork(final long networkId, String name, String disp
21212121
networkOfferingChanged = true;
21222122

21232123
//Setting the new network's isReduntant to the new network offering's RedundantRouter.
2124-
network.setIsReduntant(_networkOfferingDao.findById(networkOfferingId).getRedundantRouter());
2124+
network.setRedundant(_networkOfferingDao.findById(networkOfferingId).getRedundantRouter());
21252125
}
21262126
}
21272127

0 commit comments

Comments
 (0)