-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
xpath serialization issue #224
Comments
From the example I received this is the constellation: main-module includes some submodules: module test-module {
yang-version 1.1;
namespace urn:ietf:params:xml:ns:yang:test-module;
prefix ts-mod;
include sub-module0;
include sub-module1;
include sub-module2;
} sub-module0 defines a submodule sub-module0 {
yang-version 1.1;
belongs-to test-module {
prefix ts-mod;
}
container "container" {
}
}
sub-module1 has an submodule sub-module1 {
yang-version 1.1;
belongs-to test-module {
prefix ts-mod;
}
include "sub-module0";
augment /container {
leaf leaf_from_sub1 {
type int64;
}
}
} sub-module2 has an submodule sub-module2 {
yang-version 1.1;
belongs-to test-module {
prefix ts-mod;
}
include sub-module0;
augment /container {
leaf leaf_from_sub2 {
type leafref {
path "/container/leaf_from_sub1";
}
}
}
} The error you posted appears because the reference from sub-module2 to sub-module1 over |
@RimShao submodule sub-module2 {
yang-version 1.1;
belongs-to test-module {
prefix ts-mod;
}
include sub-module0;
// need to include in order to reference augments from sub-module1
include sub-module1;
augment /container {
leaf leaf_from_sub2 {
type leafref {
path "/container/leaf_from_sub1";
}
}
}
} From the stacktrace you posted, you could try to include |
Hi Dennis, Thanks for the information. yang-lsp 0.3.1 doesn't have this problem, and neither pyang/confdc validation result reports this submodule missing error. Is there improvement needed in yang-lsp? Thanks. //BR |
Hi Dennis, Have tried include test-policy-cncfw in test-ddos-cncfw, the problem still exists. //BR |
@RimShao Please try the latest v0.7.1 release (probably still syncing with maven repos) or the latest Snapshot |
Hi,
Encounter xpath serialization issue as below, send the code to reproduce problem separately. Thanks.
The text was updated successfully, but these errors were encountered: