summaryrefslogtreecommitdiff
path: root/src/cli_parse.y
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-05-06 16:03:50 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-05-06 16:03:50 -0700
commit0a9d8ca363096e1cf5e091d6c3aa77e8a9107e2a (patch)
treefbd356f7b3bbf991d592631bdd596e656dfdbb03 /src/cli_parse.y
parent0639cdb20357c3c1201d5a7012700373729c834a (diff)
downloadvyatta-cfg-0a9d8ca363096e1cf5e091d6c3aa77e8a9107e2a.tar.gz
vyatta-cfg-0a9d8ca363096e1cf5e091d6c3aa77e8a9107e2a.zip
fix parsing error in node.def--seen with boolean default values.
Diffstat (limited to 'src/cli_parse.y')
-rw-r--r--src/cli_parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli_parse.y b/src/cli_parse.y
index 0f32928..50b1313 100644
--- a/src/cli_parse.y
+++ b/src/cli_parse.y
@@ -43,6 +43,7 @@ static void cli_deferror(const char *);
%token DUMMY
%left SEMI
%token <val>VALUE
+%token <val>PRIORITY_VALUE
%token <type>TYPE_DEF
%token <strp>VAR
%token <strp> STRING
@@ -174,7 +175,7 @@ default_cause: DEFAULT STRING
yy_cli_parse_error((const char *)"Bad default\n");
parse_defp->def_default = $2;
}
-priority_stmt: PRIORITY VALUE
+priority_stmt: PRIORITY PRIORITY_VALUE
{
char *tmp = $2.val;
long long int cval = 0;