-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Address_book as unordered list #169
Comments
Yes, ordering lists in global_address_book is unnecessary for Junos but is supported in its config and diff when run network_address {
name = "red"
value = "192.0.2.3/32"
}
network_address {
name = "green"
value = "192.0.2.2/32"
}
network_address {
name = "blue"
value = "192.0.2.1/32"
}
address_set {
name = "color2"
address = ["green", "blue"]
}
address_set {
name = "color1"
address = ["green", "red", "blue"]
} When add
So I prefer to stay with an ordered list |
Fair enough. The problem we face is that we have a large address book, 500+ records. If we add one more, then the terraform plan will show hundreds of changes simply for the one address addition. This makes it very hard to properly review the changes that will be made, before we apply them. |
You should add the new entry at the end of the resource definition to have a more readable plan |
I investigated this further myself...and there seems to be a pattern that is followed by the AWS provider that might be helpful. Seems we can use the I tested this a bit, but it does not seem to work as I would hope. After doing a bit of digging, it seems that this issue still could exist with a TypeSet type. See the issue in the main terraform project for more information. Seems there is work being done to provide more rich type support to the SDK. |
Following my investigation in issue #316, I found a workaround to avoid large update plan output. |
The outputs of the update plan will be different, see the note in the documentation to prevent unchanged blocks not being correctly hidden. Fixes #169
It seems the global address_book is reconfigured on every terraform plan even if only the order has changed.
Is it possible to have the address_book rendered as an unordered list, e.g. using Typeset rather than Typelist?
example:
Thanks again for your great work on this!
The text was updated successfully, but these errors were encountered: