CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
301 stars 189 forks source link

ncc BUGFIX Clean backup dir properly after successful commit #1395

Closed synther closed 1 year ago

synther commented 1 year ago

Hi!

My expectation is that after the confirming commit is issued, backup files (a bunch of jsons and meta file in /var/netopeer2/confirmed_commit/) should be cleaned. I observe they are kept and after the server restarts it rollbacks the changes even the confirming commit was successful.

I made a fix according to my understanding, please check.

michalvasko commented 1 year ago

Seems fine, thanks.