You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2024/01/11 17:57:50 UTC
(cloudstack) branch nsx-fix-fw-rule-cks created (now 664df3b86ce)
This is an automated email from the ASF dual-hosted git repository.
pearl11594 pushed a change to branch nsx-fix-fw-rule-cks
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
at 664df3b86ce CKS: Add action to during firewall rule creation
This branch includes the following new commits:
new 664df3b86ce CKS: Add action to during firewall rule creation
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(cloudstack) 01/01: CKS: Add action to during firewall rule creation
Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pearl11594 pushed a commit to branch nsx-fix-fw-rule-cks
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit 664df3b86ced2a273d6fc4e94be56c3d0b44b5d6
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Thu Jan 11 12:57:35 2024 -0500
CKS: Add action to during firewall rule creation
---
.../nsx/src/main/java/org/apache/cloudstack/service/NsxElement.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/network-elements/nsx/src/main/java/org/apache/cloudstack/service/NsxElement.java b/plugins/network-elements/nsx/src/main/java/org/apache/cloudstack/service/NsxElement.java
index 4bba3a717ed..0986c367cf9 100644
--- a/plugins/network-elements/nsx/src/main/java/org/apache/cloudstack/service/NsxElement.java
+++ b/plugins/network-elements/nsx/src/main/java/org/apache/cloudstack/service/NsxElement.java
@@ -720,6 +720,7 @@ public class NsxElement extends AdapterBase implements DhcpServiceProvider, Dns
for (FirewallRule rule : rules) {
NsxNetworkRule networkRule = new NsxNetworkRule.Builder()
.setRuleId(rule.getId())
+ .setAclAction(NsxNetworkRule.NsxRuleAction.ALLOW)
.setSourceCidrList(Objects.nonNull(rule.getSourceCidrList()) ?
transformCidrListValues(rule.getSourceCidrList()) : List.of("ANY"))
.setDestinationCidrList(Objects.nonNull(rule.getDestinationCidrList()) ?