-
Notifications
You must be signed in to change notification settings - Fork 85
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
Cross-Module deviation statement doesn't properly check module prefixes? #214
Comments
So I think so this is a low-priority bug. The issue occurs when the prefix after the first element is specified incorrectly, as in this test case in desc: "deviation not supported across modules but prefix unspecified",
inFiles: map[string]string{
"source": `
module source {
prefix "s";
namespace "urn:s";
container c { leaf a { type string; } }
leaf b { type string; }
}`,
"deviation": `
module deviation {
prefix "d";
namespace "urn:d";
import source { prefix s; }
deviation /s:c/z:a {
deviate not-supported;
}
}`,
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to write a reproducing YANG file first, but the reported problem is that a deviation without the proper prefix for an element in the path still compiles but shouldn't.
The text was updated successfully, but these errors were encountered: