CESNET / netopeer2

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

Discard-changes has no effect #1374

Closed pfeige closed 1 year ago

pfeige commented 1 year ago

Hi Michal,

please consider the following command sequence: Open a session A

connect --login
lock --target candidate
edit-config --target candidate

Open a parallel session B

connect --login
commit
ERROR - The request requires a resource that already is in use.   ### OK ###

Go back to session A

discard-changes
get-config --source running
### changes are not discarded ###

Can you have a look at this?

BR, Peter

michalvasko commented 1 year ago

Yes, the commit error was generated after the data had actually been committed, fixed.

pfeige commented 1 year ago

Works. Thanks!