Skip to content

The import of configuration group is not working as expected #491

@pavithran-rathinam

Description

@pavithran-rathinam

Issue Details:
The Configuration group Feature properties are not being imported successfully. Rather than importing the expected field values, they are being overwritten or updated.

Terraform Resource:
sdwan_configuration_group

Please refer to the examples provided below:

  # module.sdwan.sdwan_configuration_group.configuration_group["config_group_1"] will be updated in-place
  # (imported from "<id>")
  ~ resource "sdwan_configuration_group" "configuration_group" {
        description           = "dual device"
      + devices               = []
        feature_profile_ids = [
            "<feature_profile_id1>",
            "<feature_profile_id2>",
            "<feature_profile_id3>",
            "<feature_profile_id4>"
        ]
      + feature_versions      = [
          + "0",
          + "0",
          + "0",
          + "0",
          + "0",
          + (known after apply),
          + "0",
          + "0",
          + "0",
          + "0",
          + "0",
          + (known after apply),
          + "0",
          + (known after apply),
          + (known after apply),
          + (known after apply),
          + "0",
          + "0",
        ]
        id                    = "<id>"
        name                  = "config-group-1"
        solution              = "sdwan"
        topology_devices      = [
            {
                criteria_attribute   = "tag1"
                criteria_value       = "primary-router-1"
                unsupported_features = [
                    {
                        parcel_id   = "<parcel_id>"
                        parcel_type = "wan/vpn/interface/ethernet"
                    },
                ]
            }
        ]
        topology_site_devices = 2
    }

  # module.sdwan.sdwan_configuration_group.configuration_group["config_group_2"] will be updated in-place
  # (imported from "<id>")
  ~ resource "sdwan_configuration_group" "configuration_group" {
        description         = "Single device "
      + devices             = []
        feature_profile_ids = [
            "<feature_profile_id1>",
            "<feature_profile_id2>",
            "<feature_profile_id3>",
            "<feature_profile_id4>"
        ]
      + feature_versions    = [
          + "0",
          + "0",
          + "0",
          + "0",
        ]
        id                  = "<id>"
        name                = "config_group_2"
        solution            = "sdwan"
    }

Metadata

Metadata

Assignees

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