diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-06 17:32:19 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-05-06 17:32:19 -0700 |
commit | 34c359422cc2d556478f4252c66aa880f8adb8b1 (patch) | |
tree | 85637dc423f1e8cff5a6aaf3b65841a612d5042b /src/cli_def.l | |
parent | 03c782a72257d611abfdba12e67ba8aa6b759c9d (diff) | |
download | vyatta-cfg-34c359422cc2d556478f4252c66aa880f8adb8b1.tar.gz vyatta-cfg-34c359422cc2d556478f4252c66aa880f8adb8b1.zip |
additional fix
Diffstat (limited to 'src/cli_def.l')
-rw-r--r-- | src/cli_def.l | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cli_def.l b/src/cli_def.l index ef5a278..a7de87d 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -257,8 +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]+ -RE_VAL_PRIORITY (PARENT|{RE_VAL_U32}) +RE_VAL_PRIORITY (PARENT) /* operators */ RE_OP_COND (==|!=|<|>|<=|>=|in) @@ -446,7 +445,7 @@ RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_he return VAR; } -<INITIAL,expression>{RE_VAL_PRIORITY} { yy_cli_parse_lval.val.free_me = TRUE; yy_cli_parse_lval.val.val = strdup(yy_cli_def_text); return PRIORITY_VALUE;} +<INITIAL,expression>{RE_VAL_PRIORITY} { return return_value(PRIORITY_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); } |