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

goyang complains augment not found #265

Open
trentzhou opened this issue Apr 17, 2024 · 0 comments
Open

goyang complains augment not found #265

trentzhou opened this issue Apr 17, 2024 · 0 comments

Comments

@trentzhou
Copy link

parent.yang:

module parent {
    namespace "urn:parent";
    prefix xxx;

    include child1;
    include child2;
}

child1.yang:

submodule child1 {
    belongs-to parent {
        prefix xxx;
    }

    container c1 {
    }

    augment /c1 {
        container c2 {
        }
    }
}

child2.yang:

submodule child2 {
    belongs-to parent {
        prefix xxx;
    }
    include child1;

    augment /xxx:c1/xxx:c2 {
        container c3 {
        }
    }
}

goyang fails:

$ goyang -p. parent.yang 
child2.yang:7:5: augment /xxx:c1/xxx:c2 not found

pyang can pass.

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

No branches or pull requests

1 participant