CiscoDevNet / terraform-provider-nxos

Terraform Cisco NX-OS Provider
https://registry.terraform.io/providers/netascode/nxos
Mozilla Public License 2.0
7 stars 10 forks source link

Version 0.5.3 dont save the running-conifg to startup config #243

Closed hani010 closed 2 months ago

hani010 commented 2 months ago

Hi, I noticed that version 05.3 no longer saves the running conifg into the startup config, could you fix that. With version 0.5.2 works it fine. Regards

danischm commented 2 months ago

Nothing has changed with regards to that. In fact we are not modifying the "running config", as we are making changes to the DME model directly.

hani010 commented 2 months ago

We had an reboot from a switch, the changes that were have made before were no longer there after the reboot. For testing i created a vlan with version 0.5.2 and 0.5.3. With version 0.5.2 the vlan was written into the startup-config, unfortunately not with version 0.5.3. I haven't checked the DME configuration

hani010 commented 2 months ago

i have add the resource "nxos_save_config" to my terraform environment and works fine.. . We can close the issue

danischm commented 2 months ago

A nxos_save_config resource does not exist for NX-OS. Are you referring to the IOS-XE provider maybe?

hani010 commented 2 months ago

look here for the NX-OS rescource: https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/save_config

danischm commented 2 months ago

I am sorry, you are right. Got confused myself. :)

danischm commented 2 months ago

And yes, you need to "execute/create" that resource at the end to persist the config.