diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-04-10 17:49:50 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-04-10 17:49:50 -0700 |
commit | f11c3e118f48d7bfd6d2a8d5d32309f2a83403fc (patch) | |
tree | 5623c3bc99d9a6623e6ffb65f958dc263a74f850 /src/cli_def.l | |
parent | 6072a6950706da557fc2aaa66919239d07207578 (diff) | |
download | vyatta-cfg-f11c3e118f48d7bfd6d2a8d5d32309f2a83403fc.tar.gz vyatta-cfg-f11c3e118f48d7bfd6d2a8d5d32309f2a83403fc.zip |
partial fix for bug 2181: add new template field "priority".
Diffstat (limited to 'src/cli_def.l')
-rw-r--r-- | src/cli_def.l | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cli_def.l b/src/cli_def.l index 07c9c68..d73f1c4 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -19,8 +19,9 @@ static char str_delim = 0; static int eof_seen = 0; static int pre_str_state = 0; -static char *reg_fields[] = { "default", "tag", "type", "multi", NULL }; -static int reg_fields_t[] = { DEFAULT, TAG, TYPE, MULTI, 0 }; +static char *reg_fields[] = { "default", "tag", "type", "multi", "priority", + NULL }; +static int reg_fields_t[] = { DEFAULT, TAG, TYPE, MULTI, PRIORITY, 0 }; static char *act_fields[] = { "help", "syntax", "commit", "delete", "update", "activate", "create", "begin", "end", @@ -262,7 +263,7 @@ RE_OP_COND (==|!=|<|>|<=|>=|in) RE_OP_OTHER (pattern|exec|,|\|\||&&|=|!|\(|\)|;) /* template fields */ -RE_REG_FIELD (default|tag|type|multi) +RE_REG_FIELD (default|tag|type|multi|priority) RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_help|allowed) %% |