mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Don't send applyLB command to the backend when domR is stopped.
This commit is contained in:
parent
ec1749a3bc
commit
8807fc8677
73
api/src/com/cloud/agent/api/to/IpAddressTO.java
Normal file
73
api/src/com/cloud/agent/api/to/IpAddressTO.java
Normal file
@ -0,0 +1,73 @@
|
||||
package com.cloud.agent.api.to;
|
||||
|
||||
public class IpAddressTO {
|
||||
|
||||
private String publicIp;
|
||||
private boolean sourceNat;
|
||||
private boolean add;
|
||||
private boolean oneToOneNat;
|
||||
private boolean firstIP;
|
||||
private String vlanId;
|
||||
private String vlanGateway;
|
||||
private String vlanNetmask;
|
||||
private String vifMacAddress;
|
||||
private String guestIp;
|
||||
|
||||
|
||||
public IpAddressTO(String ipAddress, boolean add, boolean firstIP, boolean sourceNat, String vlanId, String vlanGateway, String vlanNetmask, String vifMacAddress, String guestIp) {
|
||||
this.publicIp = ipAddress;
|
||||
this.add = add;
|
||||
this.firstIP = firstIP;
|
||||
this.sourceNat = sourceNat;
|
||||
this.vlanId = vlanId;
|
||||
this.vlanGateway = vlanGateway;
|
||||
this.vlanNetmask = vlanNetmask;
|
||||
this.vifMacAddress = vifMacAddress;
|
||||
this.guestIp = guestIp;
|
||||
}
|
||||
|
||||
public String getGuestIp(){
|
||||
return guestIp;
|
||||
}
|
||||
|
||||
public String getPublicIp() {
|
||||
return publicIp;
|
||||
}
|
||||
|
||||
public boolean isAdd() {
|
||||
return add;
|
||||
}
|
||||
|
||||
public boolean isOneToOneNat(){
|
||||
return this.oneToOneNat;
|
||||
}
|
||||
|
||||
public boolean isFirstIP() {
|
||||
return firstIP;
|
||||
}
|
||||
|
||||
public void setSourceNat(boolean sourceNat) {
|
||||
this.sourceNat = sourceNat;
|
||||
}
|
||||
|
||||
public boolean isSourceNat() {
|
||||
return sourceNat;
|
||||
}
|
||||
|
||||
public String getVlanId() {
|
||||
return vlanId;
|
||||
}
|
||||
|
||||
public String getVlanGateway() {
|
||||
return vlanGateway;
|
||||
}
|
||||
|
||||
public String getVlanNetmask() {
|
||||
return vlanNetmask;
|
||||
}
|
||||
|
||||
public String getVifMacAddress() {
|
||||
return vifMacAddress;
|
||||
}
|
||||
|
||||
}
|
||||
@ -2074,7 +2074,7 @@ public class DomainRouterManagerImpl implements DomainRouterManager, DomainRoute
|
||||
throw new ResourceUnavailableException("Unable to apply lb rules");
|
||||
}
|
||||
|
||||
if (router.getState() == State.Running || router.getState() == State.Starting || router.getState() == State.Stopped) {
|
||||
if (router.getState() == State.Running || router.getState() == State.Starting) {
|
||||
|
||||
Commands cmds = new Commands(OnError.Continue);
|
||||
List<LoadBalancerTO> lbs = new ArrayList<LoadBalancerTO>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user