mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-4913: Don't enable ebtables/iptables for non-security group zone
This commit is contained in:
parent
9dd650aca7
commit
84be2ab3be
@ -748,6 +748,17 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
||||
return new DeleteHostAnswer(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected HashMap<String, Object> buildConfigParams(HostVO host){
|
||||
HashMap<String, Object> params = super.buildConfigParams(host);
|
||||
DataCenterVO zone = _dcDao.findById(host.getDataCenterId());
|
||||
if ( zone != null ) {
|
||||
boolean securityGroupEnabled = zone.isSecurityGroupEnabled();
|
||||
params.put("securitygroupenabled", Boolean.toString(securityGroupEnabled));
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean stop() {
|
||||
_resourceMgr.unregisterResourceStateAdapter(this.getClass().getSimpleName());
|
||||
|
||||
@ -5987,7 +5987,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
details.put("private.network.device", _privateNetworkName);
|
||||
}
|
||||
|
||||
details.put("can_bridge_firewall", Boolean.toString(_canBridgeFirewall));
|
||||
cmd.setHostDetails(details);
|
||||
cmd.setName(hr.nameLabel);
|
||||
cmd.setGuid(_host.uuid);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user