I would like to use the “-F Feature” as part of confdc to support only the following features in ietf-isis@2017-07-25.yang:
auto-cost
graceful-restart
admin-control
What should be the syntax , in order to have only these features and not others (e.g. nsr)?
-Ffeatures, --feature features
Indicates that support for the YANG features should be present in the fxs file. features is a string on the form modulename:[feature(,feature)*]
This option is used to prune the data model by removing all nodes that are defined with a “if-feature” that is not listed as feature.
This option can be given multiple times.
If this option is not given, nothing is pruned, i.e., it works as if all features were explicitly listed.
If the module uses a feature defined in an imported YANG module, it must be given as modulename:feature.
After using the command:
“confdc -F auto-cost -F graceful-restart -F admin-control”
I used the emit command to generate .h file and still see the definitions for nsr.
When I used the option:
“confdc --no-features” and performed the emit command to generate .h file I don’t see the nsr definitions.
No, this is not possible - annotations just add statements that could alternatively be written directly in the module, and there is no ‘enable-feature’ statement.