Fix PathParser attribute_type

This took me a while... For some reason, Spirit does not really NEED
this `attribute_type` thing to work properly. Or maybe it does, but
doesn't care if it's invalid, because obviously, `::type` has to be
used, otherwise the using is just the ModeToAttribute type.

Anyway, fixing this revealed another bug on the code: until now, the
getPath parser used decltype(get_::m_path) as the attribute, which is
`boost::optional<boost::variant<dataPath_, module_>>. However, this is
not the correct attribute, because the getPath parser can only parse a
dataPath_, or a module_. The "optional wrapping" is done via the
optional parser directly in the rule for the get command.

The reason I found all of this is that I wanted add an optional argument
for `get` and I kept getting errors for "can't assign
boost::optional<boost::variant<...>> to boost::variant<...>".

Change-Id: I76ff8d3f201b58bb83b68c428f6b95f5c87f3a75
1 file changed
tree: 35b7daf8d9d0b4401c9b07249c185131aa07956a
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. LICENSE.md
  8. README.md
  9. ci/
  10. cmake/
  11. docs/
  12. src/
  13. tests/
README.md

Console interface to NETCONF servers

License Gerrit Zuul CI taiga.io

This program provides an interactive console for working with YANG data. It can connect to NETCONF servers, and also talk to sysrepo locally.

Installation

For building, one needs:

The build process uses CMake. A quick-and-dirty build with no fancy options can be as simple as mkdir build && cd build && cmake .. && make && make install.

Bug Reporting

Issue reporting and feature requests are welcome via Taiga.io.

Development

We are using Gerrit for patch submission, code review and Continuous Integration (CI). Development roadmap and planning happens over Taiga.io.

Credits

Copyright © CESNET, https://www.cesnet.cz/ . Portions copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Most of the code was written by Václav Kubernát (CESNET, formerly FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.