Fix identityref passing through sysrepo and NETCONF
Change-Id: Ie0f712befe56c2fcea52401a12c33812b7fb9066
diff --git a/src/libyang_utils.cpp b/src/libyang_utils.cpp
index 9051e16..3b924ad 100644
--- a/src/libyang_utils.cpp
+++ b/src/libyang_utils.cpp
@@ -27,6 +27,8 @@
return std::string(value->string());
case LY_TYPE_ENUM:
return enum_{std::string(value->enm()->name())};
+ case LY_TYPE_IDENT:
+ return identityRef_{value->ident()->module()->name(), value->ident()->name()};
case LY_TYPE_BINARY:
return std::string{value->binary()};
case LY_TYPE_DEC64: