I want to lint module-c, and modules-c can import, augment and contain leafrefs targeting module-a and module-b. Also all of these modules contain some if-feature containers.
How should I invoke yanglint to lint module-c while providing a set of features from _features.yang in non-interactive way?
I tried different ways, but the only thing that partilly worked is to specify -i -i flag to make all referenced modules implemented, but this enabled all features, and not the subset of them, as I needed.
Appreciate if someone knows how to tackle this.
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Not sure if you are using a really old version or just missed the -F parameter in yanglint -h, but it allows for fine-tuning of all the features for all the modules.
yanglint
#2309
-
|
Hi all, I am trying to use it in the CI pipeline to lint a big yang model set that we work on and my question is how to construct the CLI command that would enable required features. Consider the following file layout: _features.yang # contains features definitions
module-a.yang
module-b.yang
module-c.yangI want to lint How should I invoke I tried different ways, but the only thing that partilly worked is to specify Appreciate if someone knows how to tackle this. |
Beta Was this translation helpful? Give feedback.
-
|
Not sure if you are using a really old version or just missed the |
Beta Was this translation helpful? Give feedback.
Not sure if you are using a really old version or just missed the
-Fparameter inyanglint -h, but it allows for fine-tuning of all the features for all the modules.