Disable readonly data paths in set
The first solution to this was to just filter operational nodes directly
inside NodeParser. That however can't work, because we might want to
parse operational data paths (for `get` and also `ls`). That means I
have to define, what gets filtered out, outside of NodeParser. The first
thing that came to mind is using a template argument, however, that
can't be used with lambdas (at least not easily). Instead I just use the
constructor and std::function.
Change-Id: Ic9e503ff721970066ef53d7b5626ff153ad44e18
diff --git a/src/grammars.hpp b/src/grammars.hpp
index 859d5b8..1b4b49d 100644
--- a/src/grammars.hpp
+++ b/src/grammars.hpp
@@ -62,7 +62,7 @@
get_::name >> -(space_separator >> ((dataPathListEnd | dataPath) | (module >> "*")));
auto const set_def =
- set_::name >> space_separator > leafPath > space_separator > leaf_data;
+ set_::name >> space_separator > writableLeafPath > space_separator > leaf_data;
auto const commit_def =
commit_::name >> x3::attr(commit_());