]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: add ietf-yang-metadata to the list of built-in modules
authorIgor Ryzhov <iryzhov@nfware.com>
Sat, 3 Feb 2024 20:27:49 +0000 (22:27 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 4 Feb 2024 20:27:28 +0000 (22:27 +0200)
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 <iryzhov@nfware.com>
lib/yang.c

index 2b360376d3bacc22aba50ca9910c1618f0f7ca6c..adf2ba2ab024f3a5002174f22117b1feb744603a 100644 (file)
@@ -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;