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

min-elements attribute prevents from deleting list entries #133

Closed
itzik-solomon opened this issue Sep 1, 2020 · 1 comment
Closed

min-elements attribute prevents from deleting list entries #133

itzik-solomon opened this issue Sep 1, 2020 · 1 comment
Labels

Comments

@itzik-solomon
Copy link

problem

min-elements attribute in a list will cause commits to fail when deleting entries, even if enough entries still exist to satisfy the requirement.

example

consider this simplified Yang model snippet:

list people{
	key name;
	leaf name{
		type string;
	}
	min-elements 1;
}

running the following sequence of commands will fail:
set people name alice
set people name bob
commit
delete people name bob
commit <- will fail

@olofhagsand
Copy link
Member

Fixed by patch ^
Please verify.

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

No branches or pull requests

2 participants