clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
216 stars 72 forks source link

Problem deleting non-last list element if ordered-by user #475

Closed olofhagsand closed 8 months ago

olofhagsand commented 9 months ago

A list element being removed with edit-config operation="delete" may result in a failed diff. Which in turn may lead to other consequences (unclear) A list X YANG "ordered by user" with elements X0, X1, X2, etc. An object Xi which is not last is removed. The error has a 50% chance of occurring. Deletion is successful, but the sorting/equaity check is broken which may lead to unrecoverable errors. One way to detect it is via the show compare command which shows wrong (ie too large) diff.