mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 15:47:22 +00:00
Merge pull request #5567 from opensourcerouting/bring-them-back
lib: fix build of the northbound plugins
This commit is contained in:
commit
7809d22aa2
@ -87,7 +87,7 @@ static inline int yang_module_compare(const struct yang_module *a,
|
||||
}
|
||||
RB_GENERATE(yang_modules, yang_module, entry, yang_module_compare)
|
||||
|
||||
static struct yang_modules yang_modules = RB_INITIALIZER(&yang_modules);
|
||||
struct yang_modules yang_modules = RB_INITIALIZER(&yang_modules);
|
||||
|
||||
struct yang_module *yang_module_load(const char *module_name)
|
||||
{
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user