Skip to content

Commit

Permalink
Fix leaf-list schema node being parsed as list in libyang (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi Keshav authored Nov 16, 2017
1 parent 9f4664c commit 78f42ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sdk/cpp/core/src/path/schema_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,14 @@ ydk::path::SchemaNodeImpl::get_statement() const
s.keyword = "leaf-list";
break;
case LYS_LIST:
s.keyword = "list";
if(m_node->nodetype & LYS_LEAFLIST)
{
s.keyword = "leaf-list";
}
else
{
s.keyword = "list";
}
break;
case LYS_CASE:
s.keyword = "case";
Expand Down
1 change: 1 addition & 0 deletions test/dependencies_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function install_dependencies {
lcov \
cmake > /dev/null

cmake --version
sudo apt-get install clang-3.8 -y
sudo ln -f -s /usr/bin/clang++-3.8 /usr/bin/clang++
sudo ln -f -s /usr/bin/clang-3.8 /usr/bin/clang
Expand Down

0 comments on commit 78f42ed

Please sign in to comment.