Skip to content

Commit

Permalink
Merge pull request #3281 from opensourcerouting/update-libyang-instru…
Browse files Browse the repository at this point in the history
…ctions

doc: update libyang build instructions
  • Loading branch information
donaldsharp authored Nov 12, 2018
2 parents 24e23cb + f805c84 commit ff38f0f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
20 changes: 0 additions & 20 deletions doc/developer/building-libyang.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,3 @@ When building libyang on CentOS 6, it's also necessary to pass the
Note: please check the `libyang build requirements
<https://github.com/CESNET/libyang/blob/master/README.md#build-requirements>`_
first.

Libyang uses loadable libraries an YANG modules. It supports
environment variables to allow overriding the load paths for each of
these. With FRR, this override currently must be done at the time of
running FRR's configure command using new options. The new options are:

.. code-block:: shell
--with-yangmodelsdir=DIR
yang models directory (${datarootdir}/yang)
--with-libyang-pluginsdir=DIR
yangmodule plugins directory
(${libdir}/frr/libyang_plugins)
an example which uses the compile directory is:

.. code-block:: shell
./configure --with-libyang-pluginsdir="`pwd`/yang/libyang_plugins/.libs" \
--with-yangmodelsdir="`pwd`/yang"
18 changes: 18 additions & 0 deletions doc/user/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,24 @@ options to the configuration script.
Configure zebra to use `dir` for local state files, such as pid files and
unix sockets.

.. option:: --with-yangmodelsdir <dir>

Look for YANG modules in `dir` [`prefix`/share/yang]. Note that the FRR
YANG modules will be installed here.

.. option:: --with-libyang-pluginsdir <dir>

Look for libyang plugins in `dir` [`prefix`/lib/frr/libyang_plugins].
Note that the FRR libyang plugins will be installed here.

When it's desired to run FRR without installing it in the system, it's possible
to configure it as follows to look for YANG modules and libyang plugins in the
compile directory:
.. code-block:: shell
./configure --with-libyang-pluginsdir="`pwd`/yang/libyang_plugins/.libs" \
--with-yangmodelsdir="`pwd`/yang"
.. _least-privilege-support:

Least-Privilege Support
Expand Down

0 comments on commit ff38f0f

Please sign in to comment.