Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETCONF edit-config incoming list/leaf-list duplicates are not detected #500

Closed
olofhagsand opened this issue Mar 5, 2024 · 1 comment
Closed

Comments

@olofhagsand
Copy link
Member

If NETCONF edit-config list with config merge input as follows, duplicates are not detected under certain circumstances:

  <c>
    <list>
       <a>1</a>
    </list>
    <list>
       <a>1</a>  <-- duplicate
    </list>
</c>

where c is a presence container, list is a list with key a.
(There is a special case that detects for presence containers)
It may be detected eventually by validate, but double keys may cause internal errors such as sorting/insert, etc.

For a leaf-list, it is not detected at all:

  <c>
    <leaf-list>one<leaf-list>
    <leaf-list>one<leaf-list>  <-- duplicate
</c>
@olofhagsand
Copy link
Member Author

Fixed in 6b8f775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant