aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-07-17 09:20:06 +0100
committerRemi Duraffort <remi.duraffort@linaro.org>2018-07-17 13:18:04 +0000
commitf770b0455426592c6a446e753b99eb7f57e6f1fd (patch)
treef8cad54e76054447b7739815c1ed70b698b3bb72
parent664977da8d674bf8f66bc8406e603f02370317e1 (diff)
Add docs on adding devices in offline state
Fix a typo related to the meta-lava addition. Change-Id: I7fa39348910d63367c279c038a5ffd2c9b4ddc5e
-rw-r--r--doc/v2/first-devices.rst15
-rw-r--r--doc/v2/functional_tests.rst2
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/v2/first-devices.rst b/doc/v2/first-devices.rst
index 47a3f61a1..16c04d277 100644
--- a/doc/v2/first-devices.rst
+++ b/doc/v2/first-devices.rst
@@ -198,12 +198,21 @@ types:
lava-server manage device-types list -a
On the command line, you can add device types (for instance a QEMU type device
-with a hostname ``qemu01``) using::
+with a hostname ``qemu01``) using:
+
+.. code-block:: none
lava-server manage devices add --device-type qemu --worker <worker> qemu01
-See ``lava-server manage help devices`` for more options, including initial
-states of the device in the database.
+If a :term:`health check` is already defined, the device will start
+running a health check immediately. Alternatively, specify the
+``offline`` option to set the initial state:
+
+.. code-block:: none
+
+ lava-server manage devices add --offline --device-type qemu --worker <worker> qemu01
+
+See ``lava-server manage help devices`` for more options.
Adding a dictionary to the first QEMU device
--------------------------------------------
diff --git a/doc/v2/functional_tests.rst b/doc/v2/functional_tests.rst
index d4be1f69c..045a448bc 100644
--- a/doc/v2/functional_tests.rst
+++ b/doc/v2/functional_tests.rst
@@ -14,7 +14,7 @@ However, unit tests cannot properly test the ``run()`` functions or
performance of the code with real hardware. Two extra levels of testing
are available:
-* :ref:`metalava` - tests the ``run()`` functions against static log
+* :ref:`meta_lava` - tests the ``run()`` functions against static log
files. This is useful for devices which are not available to a
particular instance but will need updating if changes in the code
cause differences in the messages sent to the device.