identity ref issue fix in yang tools
Change-Id: If2d722fd98b714b879a82b7f66e586f31835ac4f
diff --git a/compiler/plugin/maven/src/test/resources/multipleIdentity/test.yang b/compiler/plugin/maven/src/test/resources/multipleIdentity/test.yang
new file mode 100644
index 0000000..05b4875
--- /dev/null
+++ b/compiler/plugin/maven/src/test/resources/multipleIdentity/test.yang
@@ -0,0 +1,21 @@
+module test {
+ namespace "identitytest";
+ prefix test ;
+
+ identity identity3;
+
+ identity identity2 {
+ base "identity3";
+ }
+
+ identity identity1 {
+ base "identity2";
+ }
+ container node {
+ leaf node-id{
+ type identityref {
+ base "identity1";
+ }
+ }
+ }
+}
\ No newline at end of file