diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2019-12-19 16:44:37 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2019-12-19 16:44:37 +0100 |
commit | 8a328d1787845e86f71de81575fe679fa917ce9d (patch) | |
tree | 036a1839154de0cda2e8394764390b7b8aa327d8 /lib/yang.h | |
parent | Merge pull request #5552 from sworleys/NHG-Set-RTNH_F_ONLINK (diff) | |
download | frr-8a328d1787845e86f71de81575fe679fa917ce9d.tar.xz frr-8a328d1787845e86f71de81575fe679fa917ce9d.zip |
lib: fix build of the northbound plugins
Commit 1b3e9a21dd4 removed the global visibility of the yang_modules
variable, breaking the build of all northbound plugins. Revert a
small part of that commit to fix this issue.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/yang.h')
-rw-r--r-- | lib/yang.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h index ae3e78202..6892e3601 100644 --- a/lib/yang.h +++ b/lib/yang.h @@ -114,6 +114,9 @@ typedef int (*yang_iterate_cb)(const struct lys_node *snode, void *arg); /* Global libyang context for native FRR models. */ extern struct ly_ctx *ly_native_ctx; +/* Tree of all loaded YANG modules. */ +extern struct yang_modules yang_modules; + /* * Create a new YANG module and load it using libyang. If the YANG module is not * found in the YANG_MODELS_PATH directory, the program will exit with an error. |