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

YANG parser does not recognize empty presence containers #1422

Open
alexandergall opened this issue Feb 20, 2019 · 1 comment
Open

YANG parser does not recognize empty presence containers #1422

alexandergall opened this issue Feb 20, 2019 · 1 comment
Labels

Comments

@alexandergall
Copy link
Contributor

The schema

module foo {
  namespace foo;
  prefix foo;

  container foo {
    presence "foo";
  }
}

should accept

foo {}

as a valid instance but

foo.config: loading source configuration
core/main.lua:26: unrecognized parameter: foo

One needs to add a dummy leaf node to make this work.

@hippi777
Copy link

hi there! :)

i just had to check out what is this yang, and i realized that ur not listed here:
https://en.wikipedia.org/wiki/YANG#Implementations
so if u would like to get some free ad for snabb, and u feel suitable for ur implementation to do so, then u could extend this list. :D

btw sry for the off topic!

bests! :)

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