-
Notifications
You must be signed in to change notification settings - Fork 84
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 bad use of Conjuction #898
Comments
Hi @cbreuil-orange, sorry for delay in response. `{
}` If I understand correctly, you are asking terraform to hide the operator in cases where the only possible value for it is |
Hello, I think it can be a solution. But maybe consider a issue. With terraform I wanted to produce a dynamic structure with "or" and "and" operators. I face 2 difficulties:
You can solve it by creating an ordered tree structure or a list of object criteria or conjuction (+parantesis operator to manage priority) to on attribute of nsxt_policy_group . That way, you can create this complex structure in a local variable. Then, when running, let's NSX-T API told you that some functionality are not supported.. it will encourage NSX to support more powerful functionality :-) |
Describe the bug
Normally Conjunction was required only between "criteria"
Reproduction steps
Create a groups
add only one any critera
add one IP
Import this ressources
You can see a Conjunction
the Result
Expected behavior
The Conjuction was only expected between criteria, in the GUI interfaces you can set "AND" or "OR" after the second criteria "Membership Criteria"
the Expected
OR
and if you want multiple "Membership Criteria"
Additional context
If you edit the OR by AND between One Criteria "Condition" and "Ipaddress", is it impossible
│ Error: AND conjunctions must use the same types of criteria expressions, but got condition and ipaddress_expression
and the error is normal
If you use the AND operator
its Dosent work
│ Error: Failed to update Group b92ffe4e-e5f9-4803-a5a1-15c4492ef3e8: The conjunction operator AND can only be used with condition expressions. (code 500302) Normal
If that
its works OK but now without the Conjunction
│ Error: Missing conjunction for criteria
Yes i know i can set the second ip and the same line but its for the demonstration
I dont want a default value to OR, but a good separation between "membership critera" who need OR or AND Operator and the other Critera
The text was updated successfully, but these errors were encountered: