|Thread Links||Date Links|
|Thread Prev||Thread Next||Thread Index||Date Prev||Date Next||Date Index|
Is there a git hub repo that I can put some examples of Yanglint? I came across an issue that had me wrapped around the axel for a while. I was looking at the 802.1CBcv draft and I had loaded iana-if-type and ieee802-dot1cb-stream-identification.
At this point yanglint had the following loaded modules
List of the loaded models:
However I was getting an error libyang: Identity found, but in a non-implemented module "ieee802-dot1cb-stream-identification-types".
libyang: Failed to resolve identityref "ieee802-dot1cb-stream-identification-types:null-stream-identification". (path: /ieee802-dot1cb-stream-identification:stream-identity-list[index='1']/identification-type)
When I manually loaded ieee802-dot1cb-stream-identification-types (which was already loaded according to list) the problem went away!
I found a reference to the error that there may be a order dependency in Libyang.
Moral of the story is load all module you think you need.
By the way Im also starting to use the @date notation for modules as a way to keep track of them. We are not publishing them that way but pyang will happily process them if you append the revision date from the file to the end (as above). E.g. ieee802-dot1cb-stream-identification-types@2020-08-05. The tools seem to pick the latest version in the directory too which is handy.
To unsubscribe from the STDS-802-3-YANG list, click the following link: https://listserv.ieee.org/cgi-bin/wa?SUBED1=STDS-802-3-YANG&A=1