Skip to content

Commit

Permalink
Merge pull request #15291 from idryzhov/mgmtd-yang-embed
Browse files Browse the repository at this point in the history
lib, mgmtd: fix missing embedded modules
  • Loading branch information
donaldsharp authored Feb 5, 2024
2 parents 71ea80b + 633f019 commit cac925f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/yang.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions mgmtd/subdir.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit cac925f

Please sign in to comment.