genCtx = groupingsToGenTypes(module, module.getGroupings(), genCtx, schemaContext, verboseClassComments,
genTypeBuilders, typeProvider);
genCtx = allIdentitiesToGenTypes(module, schemaContext, genCtx, verboseClassComments, genTypeBuilders, typeProvider);
- genCtx = notificationsToGenType(module, genCtx, schemaContext, genTypeBuilders, verboseClassComments, typeProvider);
if (!module.getChildNodes().isEmpty()) {
final GeneratedTypeBuilder moduleType = GenHelperUtil.moduleToDataType(module, genCtx, verboseClassComments);
processUsesImplements(module, module, schemaContext, genCtx, BindingNamespaceType.Data);
}
+ genCtx = notificationsToGenType(module, genCtx, schemaContext, genTypeBuilders, verboseClassComments, typeProvider);
+
//after potential parent data schema nodes
genCtx = actionsAndRPCMethodsToGenType(module, genCtx, schemaContext, verboseClassComments,
genTypeBuilders, typeProvider);
--- /dev/null
+module test-leafref {
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:test:leafref";
+ prefix "test";
+
+ revision "2017-02-24" {
+ description "Initial revision of test model.";
+ }
+
+ container test-container {
+ list test-list {
+ leaf test-leaf {
+ type enumeration {
+ enum enum1 {
+ value 1;
+ }
+ enum enum2 {
+ value 2;
+ }
+ }
+ }
+ }
+ }
+
+ container test-leafref-container {
+ leaf test-leafref {
+ type leafref {
+ path "/test:test-container/test:test-list/test:test-leaf";
+ }
+ }
+ }
+
+}
--- /dev/null
+module test-leafref2 {
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:test:leafref2";
+ prefix "test";
+
+ revision "2017-02-24" {
+ description "Initial revision of test model.";
+ }
+
+ container testContainer {
+ list testList {
+ leaf testLeaf {
+ type enumeration {
+ enum enum1 {
+ value 1;
+ }
+ enum enum2 {
+ value 2;
+ }
+ }
+ }
+ }
+ }
+
+ notification testLeafrefNotification {
+ leaf tesLeafref {
+ type leafref {
+ path "/test:testContainer/test:testList/test:testLeaf";
+ }
+ }
+ }
+
+}
\ No newline at end of file
--- /dev/null
+module test-leafref3 {
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:test";
+ prefix "test";
+
+ revision "2017-02-24" {
+ description "Initial revision of test model.";
+ }
+
+ container testContainer {
+ list testList {
+ leaf testLeaf {
+ type string;
+ }
+ }
+ }
+
+ notification testLeafrefNotification {
+ leaf tesLeafref {
+ type leafref {
+ path "/test:testContainer/test:testList/test:testLeaf";
+ }
+ }
+ }
+
+}
\ No newline at end of file