![]() |
libyang
1.0.101
YANG data modeling language library
|
The group of functions prefixed by lys_features_ are used to access and manipulate with the schema's features.
The first two functions are used to access information about the features in the schema. lys_features_list() provides list of all features defined in the specific schema and its submodules. Optionally, it can also provide information about the state of all features. Alternatively, caller can use lys_features_state() function to get state of one specific feature.
The remaining two functions, lys_features_enable() and lys_features_disable(), are used to enable and disable the specific feature (or all via the '*
' value). By default, when the module is loaded by libyang parser, all features are disabled.
To get know, if a specific schema node is currently disabled or enable, the lys_is_disabled() function can be used.
Note, that the feature's state can affect some of the output formats (e.g. Tree format).