I tried to compile the YANG module with the option of --feature but it looks like it doesn’t work.
The result is that all the features supported even features that I didn’t mention in the compile command.
The command you entered looks good. I am suspecting that confdc can’t find where your feature “alarm-support” is defined.
Check the example: $CONFD_DIR/examples.confd/linuxcfg/ietf_system as well, for testing.
If the feature definition is not found, the default is that all the features are enabled just as if you didn’t specify the option ‘-F’.
You can select multiple features that you want to enable. The example mentioned above shows how to do that. make all, then look at the confdc command used.
I checked your example “ietf_system” and looks like it has the same problem.
When I compiled it with the makefile the .h file contained define for “authentication-port” which is under the “radius” container the was defined under the “if-feature radius” that wasn’t mentioned in the compilation command.
After that I compiled the model with the flag “–no-features” and the result now was that “authentication-port” wasn’t defined in the .h file.
It means that -F flag isn’t working as I said.
Please assist.
I.e. as described in the confdc(1) manual page (already in 6.0):
-F features, --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)*]
Note that the ‘modulename’ is the name of the module where the feature is defined.