]> git.proxmox.com Git - mirror_frr.git/commit - lib/yang.c
yang: embed models into binaries
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 19 Nov 2018 18:18:37 +0000 (19:18 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 19 Nov 2018 22:45:24 +0000 (23:45 +0100)
commit3a11599cdc2a617dd31202911de5ce3b999c9948
tree8b49ef98e0ea8af7c1cd92693d5d2af531815762
parentfef6daf4da425621c4c2e67d7579d962f64f43f7
yang: embed models into binaries

This bakes our YANG models straight into the library/daemons, so they
don't need to be loaded from /usr/share/yang.  This makes the
installation quite a bit more robust, as well as gets us halfway to
running uninstalled.  (The other half is baking in the extension type
module.)

The /usr/share/yang directory is still searched as a fallback, as well
as for the experimental YANG model translator.  This is likely to stay
as is for the time being.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/subdir.am
lib/yang.c
lib/yang.h
ripd/subdir.am
yang/embedmodel.py [new file with mode: 0644]
yang/subdir.am