Skip to content

sdwan_data_ipv4_prefix_list_policy_object reports false positives on drift detection #520

@ivancesg

Description

@ivancesg

Provider Version: CiscoDevNet/sdwan v0.7.1 (also reproduced in v0.6.2)

Issue: The sdwan_data_ipv4_prefix_list_policy_object resource incorrectly reports
changes in terraform plan when the current state matches the desired configuration.

Expected Behavior: terraform plan should show "No changes" when tfstate matches
the actual vManage configuration.

Actual Behavior: terraform plan shows additions (+) for entries and name
attributes that already exist with identical values in both tfstate and vManage.

Evidence:

  • tfstate contains: "prefix": "10.30.192.0/22", "name": "GPC_dev_eastus2_Common"

      {
        "index_key": "eastus2_dev_Common",
        "schema_version": 0,
        "attributes": {
          "entries": [
            {
              "prefix": "10.30.192.0/22"
            }
          ],
          "id": "06bc5b86-bbec-426c-92aa-6f3d179297e7",
          "name": "GPC_dev_eastus2_Common",
          "version": 0
        },
    
  • terraform plan shows: + prefix = "10.30.192.0/22", + name = "GPC_dev_eastus2_Common"

    module.GPC-tf-vmanage-dataprefix-module.sdwan_data_ipv4_prefix_list_policy_object.dataprefix["eastus2_dev_Common"] will be updated in-place

    ~ resource "sdwan_data_ipv4_prefix_list_policy_object" "dataprefix" {
    ~ entries = [
    + {
    + prefix = "10.30.192.0/22"
    },
    ]
    id = "06bc5b86-bbec-426c-92aa-6f3d179297e7"
    + name = "GPC_dev_eastus2_Common"
    ~ version = 0 -> (known after apply)
    }

  • This occurs on multiple resources, not just one specific instance

  • Affects both single-entry and multi-entry prefix lists

Impact: Forces users to implement ignore_changes lifecycle rules, preventing
legitimate configuration updates.

Workaround: Using lifecycle { ignore_changes = [entries, name] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions