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 fails to load yang with extension #554

Open
trentzhou opened this issue Sep 18, 2024 · 0 comments
Open

Clixon fails to load yang with extension #554

trentzhou opened this issue Sep 18, 2024 · 0 comments
Labels

Comments

@trentzhou
Copy link

I played with the clixon-hello yang. When I added an extension, clixon_backend fails to load it.

module clixon-hello {
    yang-version 1.1;
    namespace "urn:example:hello";
    prefix he;
    revision 2024-09-17 {
        description "bug1: unsupported extension";
    }
    revision 2019-04-17 {
        description
            "Clixon hello world example";
    }
    extension ext1 {
        // this breaks the yang parser
        argument arg1 {}
        description "test extension";
    }
    extension ext2 {
        // this is ok
        argument arg2 ;
        description "test extension";
    }
    container hello{
        container world{
            presence true;
        }
    }
}

This yang is valid by pyang or yanglint from https://github.com/CESNET/libyang.

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