Skip to content
\n

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.

\n

How should I invoke yanglint to lint module-c while providing a set of features from _features.yang in non-interactive way?

\n

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.

\n

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.

","upvoteCount":1,"url":"https://github.com/CESNET/libyang/discussions/2309#discussioncomment-10903077"}}}
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@michalvasko
Comment options

@hellt
Comment options

@michalvasko
Comment options

@hellt
Comment options

@michalvasko
Comment options

Answer selected by hellt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants