fix the belongs-to test
This commit is contained in:
parent
1925ac68cd
commit
ed1d5698e8
2 changed files with 2 additions and 2 deletions
|
|
@ -1107,7 +1107,7 @@ yang_parse_recurse(clicon_handle h,
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (strcmp(yang_argument_get(ybelongto), yang_argument_get(yrealmod)) != 0){
|
if (strcmp(yang_argument_get(ybelongto), yang_argument_get(yrealmod)) != 0){
|
||||||
clicon_err(OE_YANG, ENOENT, "Sub-module \"%s\" references module \"%s\" in its belongs-to statement but should reference %s",
|
clicon_err(OE_YANG, ENOENT, "Sub-module \"%s\" references module \"%s\" in its belongs-to statement but should reference \"%s\"",
|
||||||
submodule,
|
submodule,
|
||||||
yang_argument_get(ybelongto),
|
yang_argument_get(ybelongto),
|
||||||
yang_argument_get(yrealmod));
|
yang_argument_get(yrealmod));
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ EOF
|
||||||
cat <<EOF > $fsub2
|
cat <<EOF > $fsub2
|
||||||
submodule sub2 {
|
submodule sub2 {
|
||||||
yang-version 1.1;
|
yang-version 1.1;
|
||||||
belongs-to sub1 {
|
belongs-to main {
|
||||||
prefix ex;
|
prefix ex;
|
||||||
}
|
}
|
||||||
import extra2{
|
import extra2{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue