summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-06-05 18:19:36 +0200
committerDaniil Baturin <daniil@baturin.org>2018-06-05 18:19:36 +0200
commit976442b5202121e538a5a3e463a0ae7ca8c90950 (patch)
treea763c4f443ef6f0c26668ee58ddf963981295a5d
parent14866791ca3e0050844dfab0b2375aa3395a4bab (diff)
downloadlibvyosconfig-976442b5202121e538a5a3e463a0ae7ca8c90950.tar.gz
libvyosconfig-976442b5202121e538a5a3e463a0ae7ca8c90950.zip
Revert "Allow leaf and tag nodes at the top level, required for piping conf mode "show" output"
This reverts commit a02c7c1cf4b0ba7666575648562f99f593306c27.
-rw-r--r--parser/vyos1x_parser.mly2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/vyos1x_parser.mly b/parser/vyos1x_parser.mly
index 42efbef..80ed4df 100644
--- a/parser/vyos1x_parser.mly
+++ b/parser/vyos1x_parser.mly
@@ -96,7 +96,7 @@ tag_node:
node_content: n = node { n } | n = leaf_node { n } | n = tag_node { n };
%public config:
- | ns = list(node_content); EOF
+ | ns = list(node); EOF
{
let root = make "root" in
let root = List.fold_left Vytree.adopt root (List.rev ns) |> Vytree.merge_children merge_data in