netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

why configs applied in the running config presists during system restarts?

Open alireza11048 opened this issue 3 years ago • 3 comments

Hi, I'm newbiew in the netconf world and I've just installed the netopper2/sysrepo setup. as I've understood, the configs which applied to the running datastore should be disappeared when the services restart (for example when the system reboots) unless the running config is copied to the startup-config. however, I'm experiencing a different things, in this manner that without coping the running config to the startup-config, the configs persist during restarts. haven't I understood the running/startup datastores correctly? could anyone kindly explain to me what is happening?

thanks in advance

alireza11048 avatar Aug 13 '22 11:08 alireza11048

Yes, you understood it correctly and running should always be replaced by startup on system reboot. What exactly are you experiencing? What sysrepo version are you using?

michalvasko avatar Aug 17 '22 09:08 michalvasko

Thanks for your response, for example, if I change ietf-interfaces config with the below command to config an interface, even after restarting the system the applied configuration exists in the running datastore. but as it applied to the running datastore, I expect that they should be removed from the running datastore. edit-config --target running --config=set_ip_conf.xml

P.S: in the netopeer-cli, this is the "edit-config help" output: edit-config [--help] --target running|candidate --config[=<file>] [--defop merge|replace|none] [--test set|test-only|test-then-set] [--error stop|continue|rollback] [--rpc-timeout <seconds>] as you can see, the valid target options are the candidate and running. why the startup datastore doesn't exist in the available options?

thanks in advance

alireza11048 avatar Aug 24 '22 05:08 alireza11048

Strictly speaking, it all depends on whether /dev/shm directory is being cleared (all files removed) on reboot or not on your system. But it is on all the systems I have worked on.

why the startup datastore doesn't exist in the available options?

Because it is not supported by the spec.

michalvasko avatar Aug 24 '22 13:08 michalvasko