summaryrefslogtreecommitdiff
path: root/doc/user/installation.rst
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-03 15:27:33 -0200
committerRenato Westphal <renato@opensourcerouting.org>2018-11-03 15:42:56 -0200
commitf805c84eafe0d5dc9da120300a1458dd10bdd26f (patch)
treea657fa82f71d1692783f4189187ca00375d33a93 /doc/user/installation.rst
parentf0c709237058897b2d3a87c8ee47971c9794c9e0 (diff)
doc: update libyang build instructions
The --with-yangmodelsdir and --with-libyang-pluginsdir build-time options pertain to FRR so they shouldn't be placed along with the libyang build instructions. Move these instructions to where they belong to avoid confusion. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'doc/user/installation.rst')
-rw-r--r--doc/user/installation.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/user/installation.rst b/doc/user/installation.rst
index b7f0712a1b..0a8cef53e1 100644
--- a/doc/user/installation.rst
+++ b/doc/user/installation.rst
@@ -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