Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsxt_policy_group conjection default to OR #800

Open
jvboyle opened this issue Oct 7, 2022 · 1 comment
Open

nsxt_policy_group conjection default to OR #800

jvboyle opened this issue Oct 7, 2022 · 1 comment

Comments

@jvboyle
Copy link

jvboyle commented Oct 7, 2022

Is your feature request related to a problem? Please describe.

when setting dynamic criteria with for_each loops , the need to set conjunction is required for multi server sets , the default behavior of OR , limits the use of the group because it infers only 1 object in the list would added. if this is set to AND , you can built a list of objects and the function of the "grouping " would be as intended

Describe the solution you'd like

criteria {
condition {
key = "Name"
member_type = "VirtualMachine"
operator = "EQUALS"
value = "server1"
}
}
conjunction {
operator = "OR"
}

criteria {
condition {
key = "Name"
member_type = "VirtualMachine"
operator = "EQUALS"
value = "server2"
}
}

Describe alternatives you've considered

No response

Additional context

No response

@annakhm
Copy link
Collaborator

annakhm commented Jul 25, 2023

Hi @jvboyle, sorry for delay in response.
Could you please provide an example of the for_each loop that is not possible today, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants