Skip to content

Commit

Permalink
lib: add ietf-yang-metadata to the list of built-in modules
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
idryzhov committed Feb 4, 2024
1 parent 273356e commit 066bb6d
Showing 1 changed file with 2 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

0 comments on commit 066bb6d

Please sign in to comment.