mirror of https://github.com/apache/cloudstack.git
CKS: Add action to during firewall rule creation (#8498)
This commit is contained in:
parent
68da68c09d
commit
b7af40413b
|
|
@ -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()) ?
|
||||
|
|
|
|||
Loading…
Reference in New Issue