Fix ParserContext flag not properly resetting

The m_topLevelModulePresent was not being properly reset when the
starting slash of an absolute path was parsed. For example:
/ietf-interfaces:interfaces> cd /i
failed when trying to parse the "i". The parser thought that a
top-level module was present, while, in fact, "/i" doesn't have a
top-level module present. The flag is now properly being reset when
parsing the starting slash of an absolute path.

Bug: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/99
Change-Id: If5144cffcf55acbf869cf24a907d2c8c174724bd
2 files changed
tree: e2cb4bfb4de92dffaa0ad8050c45045fe0b42760
  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. example-schema.yang
  13. src/
  14. submodules/
  15. sysrepo_vars.hpp.in
  16. tests/
README.md

Console interface to NETCONF servers

Credits

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