From 066bb6dc2d1e3fe283aa33d26da2472cc72b243c Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sat, 3 Feb 2024 22:27:49 +0200 Subject: [PATCH 1/2] lib: add ietf-yang-metadata to the list of built-in modules We don't need to manually load built-in modules. This fixes the following warning in mgmtd: ``` YANG model "ietf-yang-metadata@*" "*@*"not embedded, trying external file ``` Signed-off-by: Igor Ryzhov --- lib/yang.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/yang.c b/lib/yang.c index 2b360376d3ba..adf2ba2ab024 100644 --- a/lib/yang.c +++ b/lib/yang.c @@ -40,7 +40,8 @@ static LY_ERR yang_module_imp_clb(const char *mod_name, const char *mod_rev, struct yang_module_embed *e; if (!strcmp(mod_name, "ietf-inet-types") || - !strcmp(mod_name, "ietf-yang-types")) + !strcmp(mod_name, "ietf-yang-types") || + !strcmp(mod_name, "ietf-yang-metadata")) /* libyang has these built in, don't try finding them here */ return LY_ENOTFOUND; From 633f01911877f0cd3eab6a2f4b562fc4ab026505 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sat, 3 Feb 2024 22:29:40 +0200 Subject: [PATCH 2/2] mgmtd: embed frr-zebra-route-map module All used modules should be embedded to ensure work on all operating systems. Signed-off-by: Igor Ryzhov --- mgmtd/subdir.am | 1 + 1 file changed, 1 insertion(+) diff --git a/mgmtd/subdir.am b/mgmtd/subdir.am index 0af64dc0be52..3eaa9567ab8e 100644 --- a/mgmtd/subdir.am +++ b/mgmtd/subdir.am @@ -61,6 +61,7 @@ mgmtd_mgmtd_SOURCES = \ # end nodist_mgmtd_mgmtd_SOURCES = \ yang/frr-zebra.yang.c \ + yang/frr-zebra-route-map.yang.c \ yang/ietf/ietf-netconf-acm.yang.c \ yang/ietf/ietf-netconf.yang.c \ yang/ietf/ietf-netconf-with-defaults.yang.c \