diff options
author | Christian Hopps <chopps@labn.net> | 2024-10-07 05:23:31 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2024-10-07 05:32:44 +0200 |
commit | e8648a0c72f89d4ee5abe271ba079df71c4c1418 (patch) | |
tree | 87f1a475ee1ae1157354da6eedfc576605b36aeb /mgmtd/mgmt.c | |
parent | Merge pull request #17010 from anlancs/fix/tools-pim-interface-wrong-2 (diff) | |
download | frr-e8648a0c72f89d4ee5abe271ba079df71c4c1418.tar.xz frr-e8648a0c72f89d4ee5abe271ba079df71c4c1418.zip |
lib: add flag to have libyang load internal ietf-yang-library module
Mgmtd makes use of libyang's internal ietf-yang-library module to add
support for said module to FRR management. Previously, mgmtd was loading
this module explicitly; however, that required that libyang's
`ietf-yang-library.yang` module definition file be co-located with FRR's
yang files so that it (and ietf-datastore.yang) would be found when
searched for by libyang using FRRs search path. This isn't always the
case depending on how the user compiles and installs libyang so mgmtd
was failing to run in some cases.
Instead of doing it the above way we simply tell libyang to load it's
internal version of ietf-yang-library when we initialize the libyang
context.
This required adding a boolean to a couple of the init functions which
is why so many files are touched (although all the changes are minimal).
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt.c')
-rw-r--r-- | mgmtd/mgmt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mgmtd/mgmt.c b/mgmtd/mgmt.c index 02c54b921..cfadad482 100644 --- a/mgmtd/mgmt.c +++ b/mgmtd/mgmt.c @@ -57,9 +57,6 @@ void mgmt_init(void) /* Initialize MGMTD Transaction module */ mgmt_txn_init(mm, mm->master); - /* Add yang-library module */ - yang_module_load("ietf-yang-library", NULL); - /* Initialize the MGMTD Frontend Adapter Module */ mgmt_fe_adapter_init(mm->master); |