diff --git a/core/src/main/java/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java b/core/src/main/java/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java index 7247766e5c6..c16e9265a49 100644 --- a/core/src/main/java/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java +++ b/core/src/main/java/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java @@ -79,7 +79,7 @@ public class SetNetworkAclConfigItem extends AbstractConfigItemFacade { // If we check the size of the array, it will fail to setup the network. // So, let's catch the exception and continue in the loop. try { - aclRule = new ProtocolAclRule(ruleParts[5], false, Integer.parseInt(ruleParts[1])); + aclRule = new ProtocolAclRule(ruleParts[4], "ACCEPT".equals(ruleParts[5]), Integer.parseInt(ruleParts[1])); } catch (final Exception e) { s_logger.warn("Problem occured when reading the entries in the ruleParts array. Actual array size is '" + ruleParts.length + "', but trying to read from index 5."); continue; @@ -104,4 +104,4 @@ public class SetNetworkAclConfigItem extends AbstractConfigItemFacade { return super.generateConfigItems(configuration); } -} \ No newline at end of file +}