You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Circular import of modules is sometimes not detected. The two modules below are
completely symmetrical but circular dependency is only reported for prefclashx:
module prefclash {
namespace "http://prefclash";
prefix a;
import prefclashx {
prefix a1;
}
leaf a {
must "/a1:a < .";
type uint8;
}
}
$ cat prefclashx.yang
module prefclashx {
namespace "http://prefclashx";
prefix a;
import prefclash {
prefix a1;
}
leaf a {
must "/a1:a > .";
type uint8;
}
}
$ pyang prefclash.yang
$ pyang prefclashx.yang
prefclash.yin:7: error: circular dependency for module "prefclashx"
Original issue reported on code.google.com by lada.lho...@gmail.com on 24 Jun 2010 at 7:09
The text was updated successfully, but these errors were encountered:
This is actually a side effect of the fact that YIN versions of the same
modules were present in the same directory, but in prefclashx.yin the 'import'
statement was removed. The 'import' statement from a YANG file actually imports
YIN file.
I think we need to specify exactly the search order, including the YIN and YANG
versions of the same module.
It might also make sense to provide just module names at the command line
instead of file names:
$ pyang foo
Original comment by lada.lho...@gmail.com on 24 Jun 2010 at 7:27
Original issue reported on code.google.com by
lada.lho...@gmail.com
on 24 Jun 2010 at 7:09The text was updated successfully, but these errors were encountered: