BUG 3067: Added support for blocking if schema is not available.
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / yang / opendaylight-binding-broker-impl.yang
index 866cb844d189711458785614edaca761f2f3f850..84cc5c7b99121e08e801b5af82777264712154eb 100644 (file)
@@ -194,7 +194,7 @@ module opendaylight-sal-binding-broker-impl {
                 container schema-service {
                     uses config:service-ref {
                         refine type {
-                            mandatory false;
+                            mandatory true;
                             config:required-identity dom:schema-service;
                         }
                     }
@@ -204,9 +204,13 @@ module opendaylight-sal-binding-broker-impl {
     }
 
 
-    augment "/config:modules/config:module/config:state" {
+    augment "/config:modules/config:module/config:configuration" {
         case runtime-generated-mapping {
             when "/config:modules/config:module/config:type = 'runtime-generated-mapping'";
+            leaf wait-for-schema {
+                default "false";
+                type boolean;
+            }
         }
     }