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

config deviations are not always visible in generated code #896

Open
bd339 opened this issue Mar 20, 2024 · 0 comments · May be fixed by #897
Open

config deviations are not always visible in generated code #896

bd339 opened this issue Mar 20, 2024 · 0 comments · May be fixed by #897

Comments

@bd339
Copy link

bd339 commented Mar 20, 2024

If you have a deviation like this:

  deviation /foo/bar/baz {
      deviate replace {
          config false;
      }
  }

  deviation /foo/bar/quux {
      deviate not-supported;
  }

For a module like this:

module A {
    container foo {
        list bar {
            leaf baz {
                type boolean;
           }

            leaf quux {
                type string;
            }
        }
    }
}

If you generate a yin file from the yang module + deviations module, quux is deleted (correct) but baz is missing a config false; statement (incorrect).

@bd339 bd339 linked a pull request Mar 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant