summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornikos <nikos@apstra.com>2019-05-10 15:21:14 -0700
committernikos <nikos@apstra.com>2019-05-10 17:17:34 -0700
commit44f3760caa563eb8b451bbda23469f99e7301ce0 (patch)
tree15bb63b646f11ddbe38ff4eb73bac53c90ee63de
parentb1ad7351a51a921b2a4424550268bbf1d4238f24 (diff)
doc: Provide info on what pkg to install if mpls-router module is missing
The mpls-route module may be missing from Ubuntu 18.4. Provide info on what pkg to install plus what directory py.test needs to be run from. Signed-off-by: nikos <ntriantafillis@gmail.com>
-rw-r--r--doc/developer/building-frr-for-ubuntu1804.rst4
-rw-r--r--doc/developer/topotests.rst9
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/developer/building-frr-for-ubuntu1804.rst b/doc/developer/building-frr-for-ubuntu1804.rst
index 1320bda577..8bdc2b9c76 100644
--- a/doc/developer/building-frr-for-ubuntu1804.rst
+++ b/doc/developer/building-frr-for-ubuntu1804.rst
@@ -104,6 +104,10 @@ And load the kernel modules on the running system:
sudo modprobe mpls-router mpls-iptunnel
+If the above command returns an error, you may need to install the appropriate
+or latest linux-modules-extra-<kernel-version>-generic package. For example
+``apt-get install linux-modules-extra-`uname -r`-generic``
+
Enable MPLS Forwarding
""""""""""""""""""""""
diff --git a/doc/developer/topotests.rst b/doc/developer/topotests.rst
index 605b9c9a0c..1e165a2444 100644
--- a/doc/developer/topotests.rst
+++ b/doc/developer/topotests.rst
@@ -105,6 +105,8 @@ Execute all tests with output to console
py.test -s -v --tb=no
+The above command must be executed from inside the topotests directory.
+
All test\_\* scripts in subdirectories are detected and executed (unless
disabled in ``pytest.ini`` file).
@@ -119,6 +121,13 @@ Execute single test
cd test_to_be_run
./test_to_be_run.py
+For example, and assuming you are inside the frr directory:
+
+.. code:: shell
+
+ cd tests/topotests/bgp_l3vpn_to_bgp_vrf
+ ./test_bgp_l3vpn_to_bgp_vrf.py
+
For further options, refer to pytest documentation.
Test will set exit code which can be used with ``git bisect``.