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 #105

Closed rjoensen closed 1 year ago

rjoensen commented 1 year ago

Hi there,

There seems to be missing something in the destroying part of removing an interface configuration using iosxr_interface. Creating it is just fine, but when you destroy (remove the resource reference from your .tf file) it does not remove the configuration from the IOS-XR device.

danischm commented 1 year ago

Indeed, which is due to the gNMI/YANG interface we are using, where we cannot simply remove a full interface configuration. For most of the other resources this works, but there are a few exceptions like iosxr_interface.

rjoensen commented 1 year ago

Thank you for a quick update on this. I will try to think of a workaround to blanket interface configs out instead of destroying.

danischm commented 1 year ago

Yeah, if you replace the attribute values with empty strings and default values, then run a "terraform apply" it should more or less revert the interface config.