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 submodule import prefix restrictions #60

Closed
olofhagsand opened this issue Dec 1, 2018 · 1 comment
Closed

Yang submodule import prefix restrictions #60

olofhagsand opened this issue Dec 1, 2018 · 1 comment
Labels

Comments

@olofhagsand
Copy link
Member

Submodules cannot re-use a prefix in an import statement that is already used for another imported module in the module that the submodule belongs to.
In the example below, the submodule S is included by M, and therefore cannot use the prefix "p" for another module (M2) than the one imported by M (M1). It is OK if S imports M1 using p.

submodule S{
  belongs-to "M";
  import M2 { prefix p; } <<---- Must not be p since it is used by M
}
module M{
  include S;
  import M1 { prefix p; }
}
olofhagsand added a commit that referenced this issue May 14, 2019
@olofhagsand
Copy link
Member Author

Fixed by commit^

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

1 participant