Fix docgen failure on multi-level choice definition
[netconf.git] / restconf / sal-rest-docgen / src / test / resources / yang / toaster.yang
index ffddc8c3daa0f36f8ea51a2e4e39000b44438fe6..dab5c0299f5487353c484198f2f5c9aa1a540136 100644 (file)
@@ -131,6 +131,28 @@ module toaster {
                      type string;
                  }
              }
+
+            case other {
+              description "2nd level choice";
+
+              choice scheduled {
+                case weekly {
+                  leaf weekly {
+                    type string;
+                  }
+                }
+                case monthly {
+                  leaf monthly {
+                    type string;
+                  }
+                }
+                case yearly {
+                  leaf yearly {
+                    type string;
+                  }
+                }
+              }
+            }
          }
 
       leaf toasterManufacturer {