From b6b5615583b08c5f9d356ed75678c06e62574565 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 2 Apr 2020 20:02:38 +0200 Subject: development: add notes about priorities --- docs/contributing/development.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/contributing/development.rst') diff --git a/docs/contributing/development.rst b/docs/contributing/development.rst index 0a8967d5..efaa7440 100644 --- a/docs/contributing/development.rst +++ b/docs/contributing/development.rst @@ -701,6 +701,19 @@ circumstance, the kernel boot parameter ``vyos-config-debug`` will ensure access to the system as user ``vyos``, and will log a Python stack trace to ``/tmp/boot-config-trace``. +```Priorities``` +^^^^^^^^^^^^^^^^ + +VyOS CLI is all about priorities. Every CLI node has a corresponding ``node.def`` +file and possibly an attached script that is executed when the node is present. +Nodes can have a priority, and on system bootup - or any other ``commit`` to the +config all scripts are executed from lowest to higest priority. This is good as +this gives a deterministic behavior. + +To debug issues in priorities or to see what's going on in the background you can +use the ``/opt/vyatta/sbin/priority.pl`` script which lists to you the execution +order of the scripts. + Continuous Integration ====================== -- cgit v1.2.3