CiscoDevNet / terraform-provider-iosxr

Terraform Cisco IOS-XR Provider
https://registry.terraform.io/providers/CiscoDevNet/iosxr
Mozilla Public License 2.0
6 stars 9 forks source link

`iosxr_interface` resource failing to change interface description #264

Open edudppaz opened 1 month ago

edudppaz commented 1 month ago

When trying to change the interface description of a subinterface via the iosxr_interface resource, terraform is getting an error:

Tfplan:

  # iosxr_interface.fw_subif["xrv9k-01-TenGigE0/0/0/14"] will be updated in-place
  ~ resource "iosxr_interface" "fw_subif" {
      ~ description                 = "to lokasjon " -> "link_to_lokasjon"
        id                          = "Cisco-IOS-XR-um-interface-cfg:/interfaces/interface[interface-name=TenGigE0/0/0/14.3130]"
        # (8 unchanged attributes hidden)
    }

Tfapply:

iosxr_interface.fw_subif["xrv9k-01-TenGigE0/0/0/14"]: Modifying... [id=Cisco-IOS-XR-um-interface-cfg:/interfaces/interface[interface-name=TenGigE0/0/0/14.3130]]
iosxr_interface.fw_subif["xrv9k-01-TenGigE0/0/0/14"]: Still modifying... [id=Cisco-IOS-XR-um-interface-cfg:/interfac...e[interface-name=TenGigE0/0/0/14.3130], 10s elapsed]

  308: resource "iosxr_interface" "fw_subif" {
│ 
│ Set request failed, got error: rpc error: code = Internal desc = {
│  "cisco-grpc:errors": {
│   "error": [
│    {
│     "error-type": "application",
│     "error-tag": "operation-failed",
│     "error-severity": "error",
│     "error-path": "Cisco-IOS-XR-um-interface-cfg:interfaces/interface[interface-name = 'TenGigE0/0/0/14.3130']/interface-name",
│     "error-message": "Subinterface or Layer 2 configuration conflicts with existing configuration, or configuration in this commit: Please refer to configuration documentation for further assistance"
│    }
│   ]
│  }
│ }
│