diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-04-22 13:34:17 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-04-22 13:34:17 -0700 |
commit | b72ddf64bc5d89487ffe9672f0ba89c5b90ac2e5 (patch) | |
tree | 23b4f9af8dfd915c8951729fd3bb0dbf9e658fb7 /src/cli_def.l | |
parent | d29097a8800e16899873bea1b70b85b0bd3586ab (diff) | |
download | vyatta-cfg-b72ddf64bc5d89487ffe9672f0ba89c5b90ac2e5.tar.gz vyatta-cfg-b72ddf64bc5d89487ffe9672f0ba89c5b90ac2e5.zip |
support for PARENT reference in priority statements. Example:
priority: PARENT
Means that this priority group will adopt the priority value of the parent. And the behavior on deletion of this priority root node will be deleted before the parent. On
all other operations this node will be scheduled after the parent.
This should fix problems in scheduling creation/deletion orders for priority groups so long as they are located within the same hierarchy.
priority.pl has been updated as well.
Diffstat (limited to 'src/cli_def.l')
-rw-r--r-- | src/cli_def.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli_def.l b/src/cli_def.l index 721e5f0..804d142 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -257,6 +257,7 @@ RE_TYPE_NAME (txt|u32|ipv4|ipv4net|ipv6|ipv6net|bool|macaddr) /* values */ RE_VAL_U32 [0-9]+ RE_VAL_BOOL (true|false) +RE_VAL_TEXT [a-zA-Z]+ /* operators */ RE_OP_COND (==|!=|<|>|<=|>=|in) @@ -444,6 +445,7 @@ RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_he return VAR; } +<INITIAL,expression>{RE_VAL_TEXT} { return return_value(TEXT_TYPE); } <INITIAL,expression>{RE_VAL_U32} { return return_value(INT_TYPE); } <INITIAL,expression>{RE_IPV4} { return return_value(IPV4_TYPE); } <INITIAL,expression>{RE_IPV4NET} { return return_value(IPV4NET_TYPE); } |