mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
lib, doc: increase maximum cli tokens
When matching user input against a CLI graph, we keep a stack of tokens matched. Stack size was limited to 64, making the effective number of tokens that could be entered on a line 64. This is too limiting in some circumstances, so bump it to 256 (and document it). Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
fea0584841
commit
bb74e5acbc
@ -75,6 +75,9 @@ Some general notes:
|
|||||||
configuration items should be defined in separate commands. Clarity is
|
configuration items should be defined in separate commands. Clarity is
|
||||||
preferred over LOC (within reason).
|
preferred over LOC (within reason).
|
||||||
|
|
||||||
|
* The maximum number of space-separated tokens that can be entered is presently
|
||||||
|
limited to 256. Please keep this limit in mind when implementing new CLI.
|
||||||
|
|
||||||
Variable Names
|
Variable Names
|
||||||
--------------
|
--------------
|
||||||
The parser tries to fill the "varname" field on each token. This can happen
|
The parser tries to fill the "varname" field on each token. This can happen
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
DEFINE_MTYPE_STATIC(LIB, CMD_MATCHSTACK, "Command Match Stack")
|
DEFINE_MTYPE_STATIC(LIB, CMD_MATCHSTACK, "Command Match Stack")
|
||||||
|
|
||||||
#define MAXDEPTH 64
|
#define MAXDEPTH 256
|
||||||
|
|
||||||
#ifdef TRACE_MATCHER
|
#ifdef TRACE_MATCHER
|
||||||
#define TM 1
|
#define TM 1
|
||||||
|
Loading…
Reference in New Issue
Block a user