Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VRF change on interface does not reapply IP #183

Open
mobig opened this issue Sep 19, 2024 · 1 comment
Open

VRF change on interface does not reapply IP #183

mobig opened this issue Sep 19, 2024 · 1 comment

Comments

@mobig
Copy link

mobig commented Sep 19, 2024

On the NXOS provider, when a VRF is changed on an interface, the IP address is automatically reapplied because the provider recognizes that the IP address is removed during a VRF change. However, this behavior is not observed with the IOS provider, where the IP address is not automatically reapplied after being removed by the router during a VRF change.

In order to get the IP address back on the interface, I need to re-run the terraform apply.

@danischm
Copy link
Member

TF allows you to define attribute changes that require a "replace" operation:

resource "iosxe_interface_loopback" "example" {
  ...
  replace_triggered_by = [vrf_forwarding]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants