mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
lib: parser: accept number-only word tokens
There seems to be no reason why numbers don't work as plain word tokens; this is useful to have "number choices" or constants, e.g. <128|192|256> for bit encryption lengths. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
a6cf5da4fd
commit
bca1a301ba
@ -26,7 +26,7 @@
|
|||||||
#include "command_parse.h"
|
#include "command_parse.h"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
WORD (\-|\+)?[a-z\*][-+_a-zA-Z0-9\*]*
|
WORD (\-|\+)?[a-z0-9\*][-+_a-zA-Z0-9\*]*
|
||||||
IPV4 A\.B\.C\.D
|
IPV4 A\.B\.C\.D
|
||||||
IPV4_PREFIX A\.B\.C\.D\/M
|
IPV4_PREFIX A\.B\.C\.D\/M
|
||||||
IPV6 X:X::X:X
|
IPV6 X:X::X:X
|
||||||
|
Loading…
Reference in New Issue
Block a user