Commit eb9c8346 authored by Rémi Duraffort's avatar Rémi Duraffort

doc: mention the live patching in acquire

We can patch device-type names and device dictionaries.
Signed-off-by: Rémi Duraffort's avatarRémi Duraffort <remi.duraffort@linaro.org>
parent 49cebcc4
Pipeline #4388 passed with stages
in 3 minutes and 25 seconds
......@@ -127,8 +127,8 @@ A second token should be created to hold the ``lava_server_lavafed_token``
description: lavafed token for federation.l.o
lab: validation.linaro.org
Configuration files
===================
Configuration file
==================
The lab configuration in `etc/labs/remote.lab/master.yaml` should look like:
......@@ -161,4 +161,37 @@ The lab configuration in `etc/labs/remote.lab/master.yaml` should look like:
# List of devices to borrow
devices:
- name: "{{ device_name }}"
- name: "{{ device_name_01 }}"
- name: "{{ device_name_02 }}"
Patching device dictionary
--------------------------
Under some circumstances, the device dictionary should be adapted to be used in
lavafed.
In order to patch the device dictionary, you should update the lab
``config.yaml``:
.. code-block:: yaml
devices:
- name: device-01
patches:
- from: '{% set connection_command = "telnet localhost 2001" %}'
to: '{% set connection_command = "telnet dispatcher-01 2001" %}'
Device-type aliases
-------------------
In some labs, the device-type naming conventions can differ from the official LAVA device-type names.
The device-type name of a give device might not match any of the official LAVA
device-types even if they underlying device-type template is officialy supported.
In thi case, the official device-type should be specified in the ``config.yaml``:
.. code-block:: yaml
devices:
- name: device-02
dvice-type: offical-lava-device-type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment