AVX-50899: fqdn_lan_interface is not needed for firenet fqdn association #1970
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
After create Firenet FQDN association, reapply same config, will cause destroy and reapply due to fqdn_lan_interface change
RCA
av-nic-arm-fqdn-transit-firenet-gw_eth1
is from avixtrix_gateway resource, however, this value is hard-coded in terraform code, not from controller API response.av-nic-arm-fqdn-transit-firenet-gw_eth-fqdnlan0
is from Firenet resouce, which is returned from controller API response.These 2 values mismatch.
Fix
For Firenet FQDN gateway, this
fqdn_lan_interface
is not used at all. Controller/copilot UI doesn't use it as well. Only controller backend use it internally.Therefore, set it to empty value and remove from terraform logic.