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

Clixon backend transactions for choice/case is not logical #361

Closed
olofhagsand opened this issue Sep 6, 2022 · 0 comments
Closed

Clixon backend transactions for choice/case is not logical #361

olofhagsand opened this issue Sep 6, 2022 · 0 comments

Comments

@olofhagsand
Copy link
Member

Given YANG:

  choice c {
     case x {
       leaf first { type boolean; }
    }
    case y {
       leaf second { type boolean; } 
       leaf third { type boolean; }
   }

An edit in the datastore such as:

  1. <first/> -> <second/> will result in a change event
  2. <first/> -> <third/> will result in a del + add event

This is not logical.

It is proposed to change the behavior so that all changes in a choice or choice+case is changed to be a del + add event .
This may have consequnces on existing transaction callback code.

@olofhagsand olofhagsand added the bug label Sep 6, 2022
olofhagsand added a commit that referenced this issue Sep 7, 2022
Fixed: [Clixon backend transactions for choice/case is not logical](#361)
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