mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
doc: update [no] recommendation
Signed-off-by: Quentin Young <qlyoung@qlyoung.net>
This commit is contained in:
parent
f9ed1c9c30
commit
5b4a3d3af9
@ -996,14 +996,9 @@ recommendations:
|
|||||||
an example, there’s no need to have both ``distance (1-255) A.B.C.D/M`` and
|
an example, there’s no need to have both ``distance (1-255) A.B.C.D/M`` and
|
||||||
``distance (1-255) A.B.C.D/M WORD`` when a single ``distance (1-255)
|
``distance (1-255) A.B.C.D/M WORD`` when a single ``distance (1-255)
|
||||||
A.B.C.D/M [WORD]`` would suffice.
|
A.B.C.D/M [WORD]`` would suffice.
|
||||||
#. When necessary, create a separate DEFPY for ``no`` commands so that part of
|
#. When making a negative form of a command, put ``[no]`` in the positive form
|
||||||
the configuration command can be made optional for convenience. Example:
|
and use ``![...]`` to mark portions of the command that should be optional
|
||||||
``no timers basic [(5-2147483647) (5-2147483647) (5-2147483647)]``. In this
|
only in the ``no`` version.
|
||||||
example, everything after ``no timers basic`` is ignored by FRR, so it makes
|
|
||||||
sense to accept ``no timers basic`` as a valid command. But it also makes
|
|
||||||
sense to accept all parameters (``no timers basic (5-2147483647)
|
|
||||||
(5-2147483647) (5-2147483647)``) to make it easier to remove the command
|
|
||||||
just by prefixing a “no” to it.
|
|
||||||
|
|
||||||
To rewrite a CLI command as a dumb wrapper around the northbound
|
To rewrite a CLI command as a dumb wrapper around the northbound
|
||||||
callbacks, use the ``nb_cli_cfg_change()`` function. This function
|
callbacks, use the ``nb_cli_cfg_change()`` function. This function
|
||||||
|
Loading…
Reference in New Issue
Block a user