Skip to content

Commit d13c343

Browse files
author
Anthony Xu
committed
CLOUDSTACK-4913: Don't enable ebtables/iptables for non-security group zone
1 parent abb95c1 commit d13c343

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,17 @@ public DeleteHostAnswer deleteHost(HostVO host, boolean isForced, boolean isForc
744744
return new DeleteHostAnswer(true);
745745
}
746746

747+
@Override
748+
protected HashMap<String, Object> buildConfigParams(HostVO host){
749+
HashMap<String, Object> params = super.buildConfigParams(host);
750+
DataCenterVO zone = _dcDao.findById(host.getDataCenterId());
751+
if ( zone != null ) {
752+
boolean securityGroupEnabled = zone.isSecurityGroupEnabled();
753+
params.put("securitygroupenabled", Boolean.toString(securityGroupEnabled));
754+
}
755+
return params;
756+
}
757+
747758
@Override
748759
public boolean stop() {
749760
_resourceMgr.unregisterResourceStateAdapter(this.getClass().getSimpleName());

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6007,7 +6007,6 @@ protected void fillHostInfo(Connection conn, StartupRoutingCommand cmd) {
60076007
details.put("private.network.device", _privateNetworkName);
60086008
}
60096009

6010-
details.put("can_bridge_firewall", Boolean.toString(_canBridgeFirewall));
60116010
cmd.setHostDetails(details);
60126011
cmd.setName(hr.nameLabel);
60136012
cmd.setGuid(_host.uuid);

0 commit comments

Comments
 (0)