PaloAltoNetworks / terraform-provider-panos

Terraform Panos provider
https://www.terraform.io/docs/providers/panos/
MIT License
89 stars 71 forks source link

During plan, PANOS Terraform provider prompts that there is an update to bfd_profile of on static routes. #381

Open rbolneni opened 1 year ago

rbolneni commented 1 year ago

Describe the bug

During plan, PANOS Terraform provider prompts that there is an update to bfd_profile of on static routes. This happens regardless of whether the key:value pair is present in the resource.

Example message seen: module.office_vpn_ast1_1[0].panos_static_route_ipv4.static_route_tunnel_2 will be updated in-place ~ resource "panos_static_route_ipv4" "static_route_tunnel_2" { - bfd_profile = "None" -> null id = "External_VR:AWS-IKE-GW2-comcast" name = "AWS-IKE-GW2-comcast"

(8 unchanged attributes hidden)

Expected behavior

No prompts that BFD profile is being updated when it is not

Current behavior

PANOS Terraform provider prompts that there is an update bfd_profile on static routes occasionally

Possible solution

n/a

Steps to reproduce

  1. Configure a static route with no BFD profile
  2. Intermittently when applying any configuration changes, we see this message that BFD profile is being updated

Screenshots

Your Environment

terraform { required_providers { panos = { source = "PaloAltoNetworks/panos" version = "1.10.1" } aws = { source = "hashicorp/aws" version = "~> 4.48" } } }