CLOUDSTACK-4913: Don't enable ebtables/iptables for non-security group zone

This commit is contained in:
Anthony Xu 2013-11-25 16:06:00 -08:00
parent 9dd650aca7
commit 84be2ab3be
2 changed files with 11 additions and 1 deletions

View File

@ -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());

View File

@ -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);