-
Notifications
You must be signed in to change notification settings - Fork 51
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
Wrong 'allowaccess' order will force Terraform to always commit the changes again #277
Comments
A similar issue seems to be with the CIDR notation in the seconary_ips block
Terraform will always rerun it
So it seems to be necessary to write the ip as x.y.z.u a.b.c.d instead of x.y.z.u/n? Even as the documentation says ip - Interface IPv4 address and subnet mask, syntax: X.X.X.X/24? |
I might have found the problem. The terraform provider doesn't seem to complain if one interface name is wrong. |
Actually, it still seems to be the case with the CIDR
Terraform want's to repeat it every time I apply it. |
Maybe the reason is
|
Hi @tkoeck , Thank you for bring up this issue, we will improve this feature in the future, even FOS accepts two types ip/subnet input, but in database, it is stored as one form, so far, if we want to ignore this change msg, we suggest to use default format such as Thanks, |
Hi Maxx, I adjusted the IP address formats. It still wants to apply and reapply the Terraform configuration. Terraform will perform the following actions:
So there seems to be something else wrong. |
On further studies the entry member { in the resource fortios_system_interface "internal" doesn't seem to have any effect. Terraform always wants to rerun it. |
Hi @tkoeck, Could you try to separate interface info their own member block just like
Let me know if that doesn't work. Thanks, |
Hi Maxx, yes, I already tried that before. Didn't make a difference. |
Could you do this operation through GUI? maybe there is any internal interface not available to be added, GUI can help you to check if all of these interfaces can be used by clicking the plus expand icon next to the |
I just go through doc, argument |
That doesn't seem to work tkoeck@tron-nb:~/gitlab/router-berlin$ terraform apply |
I was able to work around this plan/apply loop for "wrong" orders by using dynamic_sort_subtable="alphabetical" and making sure the terraform code has alphabetical order as well. |
No change.
|
Hi @tkoeck , I find this instruction, according to what here said, adding member interface would add Thanks, |
Hi @MaxxLiu22, Just wondering if there is any progress on this issue with having to specify netmask in dotted decimal format? Should we open a separate issue about that? Thanks. |
Hi all, I hope you're doing well. The argument Thank you for your patience, and don't hesitate to reach out if you have any questions. Best regards, |
Hi @MaxxLiu22, That seems to be fixed on interface secondaryip, but it seems the issue is still present on other resources / attributes. Please see below.
Thanks. |
Terraform will perform the following actions:
So I can always press yes and the next time it wants to change it, too.
It appears to me that your terraform provider always wants to change that if it is not in the right order
E.g. is not allowaccess = "ping https http fgfm" or for the secondary_ip "ping https http"
The text was updated successfully, but these errors were encountered: