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

fortios_system_interface dhcp_relay_ip always updated #239

Closed
jacksonwg opened this issue Jun 29, 2022 · 3 comments
Closed

fortios_system_interface dhcp_relay_ip always updated #239

jacksonwg opened this issue Jun 29, 2022 · 3 comments

Comments

@jacksonwg
Copy link

The value of the dhcp_relay_ip attribute on fortios_system_interface is wrapped with quotation marks after being set. This causes the plan and apply to indicate a change even when there is no actual change.

# fortios_system_interface.vlan_int["90"] will be updated in-place
  ~ resource "fortios_system_interface" "vlan_int" {
      ~ dhcp_relay_ip                              = "\"10.0.0.3\" " -> "10.0.0.3"
        id                                         = "90"
        name                                       = "90"
        # (163 unchanged attributes hidden)

When viewed in the GUI and CLI, the value displayed is just 10.0.0.3 without any quotes.

@lix-fortinet
Copy link
Contributor

Hi @jacksonwg,

Thank you for raising this issue. The reason for this issue is that the response from REST API contains extra quotation. We will work with the related team to find a solution for it. And we will get back to you once it's resolved.

Thanks,
Xing

@lix-fortinet
Copy link
Contributor

Hi @jacksonwg,

This issue has been fixed in the latest release of FortiOS Terraform provider v1.15.0. Please switch to the latest version of FortiOS Terraform provider and try it again.

Thanks,
Xing

@jacksonwg
Copy link
Author

Thanks very much for letting me know.

I've tried out the new provider version and verified I am no longer seeing the behaviour I initially described.

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

No branches or pull requests

2 participants