diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-29 15:02:10 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-29 15:02:10 -0800 |
commit | 90d32cf15eb2cc79fed853b98f6171e80107411f (patch) | |
tree | c6bc1f35f00412f76b479e1a6d2c20cd98a922a4 /src | |
parent | 74351d1c564ccc23fce3a5cb5614e5620d62fe65 (diff) | |
download | vyatta-cfg-90d32cf15eb2cc79fed853b98f6171e80107411f.tar.gz vyatta-cfg-90d32cf15eb2cc79fed853b98f6171e80107411f.zip |
allow non-txt values in initial state (for default).
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_def.l | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cli_def.l b/src/cli_def.l index 20fb07d..4f536bd 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -430,13 +430,13 @@ RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_he return VAR; } -<expression>{RE_VAL_U32} { return return_value(INT_TYPE); } -<expression>{RE_IPV4} { return return_value(IPV4_TYPE); } -<expression>{RE_IPV4NET} { return return_value(IPV4NET_TYPE); } -<expression>{RE_IPV6} { return return_value(IPV6_TYPE); } -<expression>{RE_IPV6NET} { return return_value(IPV6NET_TYPE); } -<expression>{RE_VAL_BOOL} { return return_value(BOOL_TYPE); } -<expression>{RE_MACADDR} { return return_value(MACADDR_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); } +<INITIAL,expression>{RE_IPV6} { return return_value(IPV6_TYPE); } +<INITIAL,expression>{RE_IPV6NET} { return return_value(IPV6NET_TYPE); } +<INITIAL,expression>{RE_VAL_BOOL} { return return_value(BOOL_TYPE); } +<INITIAL,expression>{RE_MACADDR} { return return_value(MACADDR_TYPE); } <*>. { return SYNTAX_ERROR; |