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

Deletion of leaf in YANG choice removes leaf in a different choice/case. #542

Closed
olofhagsand opened this issue Aug 19, 2024 · 0 comments
Closed

Comments

@olofhagsand
Copy link
Member

Assume YANG:

   container my {
	choice type {
	    case prefix {
		  leaf prefix;
	    }
	    case table-name {
		   leaf table-name;
        }
     }

and configuration:

<my>
   <prefix>A</prefix>
</my>

If you remove: <my><table-name/></my>, then <my><prefix/></my> gets deleted.

@olofhagsand olofhagsand changed the title Deletion of leaf in YANG choice removes leaf in a different case. Deletion of leaf in YANG choice removes leaf in a different choice/case. Aug 19, 2024
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