summaryrefslogtreecommitdiffstats
path: root/lib/yang.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-24 02:02:15 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-28 22:28:40 +0100
commit3625360d889b71dfe5f8d849955bc7a275946741 (patch)
treeec7709ee6d2a247590e1ee6b7b906bb8eb8d1ec9 /lib/yang.h
parentzebra: convert interface ipv6 nd dnssl command to NB (diff)
downloadfrr-3625360d889b71dfe5f8d849955bc7a275946741.tar.xz
frr-3625360d889b71dfe5f8d849955bc7a275946741.zip
lib: add support for "features" when loading YANG modules
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/yang.h')
-rw-r--r--lib/yang.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/yang.h b/lib/yang.h
index 1235125f2..431b2eee4 100644
--- a/lib/yang.h
+++ b/lib/yang.h
@@ -112,10 +112,16 @@ extern struct yang_modules yang_modules;
* module_name
* Name of the YANG module.
*
+ * features
+ * NULL-terminated array of feature names to enable.
+ * If NULL, all features are disabled.
+ * To enable all features, use ["*", NULL].
+ *
* Returns:
* Pointer to newly created YANG module.
*/
-extern struct yang_module *yang_module_load(const char *module_name);
+extern struct yang_module *yang_module_load(const char *module_name,
+ const char **features);
/*
* Load all FRR native YANG models.