From a02c7c1cf4b0ba7666575648562f99f593306c27 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 5 Jun 2018 17:38:19 +0200 Subject: Allow leaf and tag nodes at the top level, required for piping conf mode "show" output which produces incomplete configs and thus breaks the "all top level nodes" are non-leaf non-tag nodes invariant. --- parser/vyos1x_parser.mly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser') diff --git a/parser/vyos1x_parser.mly b/parser/vyos1x_parser.mly index 80ed4df..42efbef 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); EOF + | ns = list(node_content); EOF { let root = make "root" in let root = List.fold_left Vytree.adopt root (List.rev ns) |> Vytree.merge_children merge_data in -- cgit v1.2.3