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

Resource "nxos_save_config" not working [BUG] #298

Open
krzysztofmaciejewskiit opened this issue Feb 4, 2025 · 2 comments
Open

Resource "nxos_save_config" not working [BUG] #298

krzysztofmaciejewskiit opened this issue Feb 4, 2025 · 2 comments

Comments

@krzysztofmaciejewskiit
Copy link

krzysztofmaciejewskiit commented Feb 4, 2025

Version: 0.5.7

I want to save the configuration of the device with Terraform.
Image

Logs when creating the resource that should be responsible for this.
Image

The result on the device, which suggests an unsaved configuration. After saving manually, WARNING does not appear.
Image

However, when I do this with the "nxos_rest" resource it saves after the second run of Terraform (it doesn't after the first - not sure why, but at least it works). The content of the resource "nxos_rest" "save" is literally a rewritten request by the API, which you can see in the debug.
Image

API request:
Image

@krzysztofmaciejewskiit krzysztofmaciejewskiit changed the title Resource "nxos_save_config" not wirking [BUG] Resource "nxos_save_config" not working [BUG] Feb 4, 2025
@krzysztofmaciejewskiit
Copy link
Author

From the perspective of the switch, about running the"debug nxapi-server logs" command, you can see that something interrupts the save.
Image

@krzysztofmaciejewskiit
Copy link
Author

@danischm are you able to help me? There is one more issue related to my case on GitHub.

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

1 participant