Convert yanglib project to blueprint
[netconf.git] / netconf / yanglib / src / main / yang / yanglib.yang
index 0267abfd3cdb0c44d8c9e46208d5878511db9a26..275995b3b1a8d91ee65b9edf65471ee3805907df 100644 (file)
@@ -3,54 +3,37 @@ module yanglib {
     namespace "urn:opendaylight:params:xml:ns:yang:controller:yanglib:impl";
     prefix "yanglib";
 
-    import config { prefix config; revision-date 2013-04-05; }
-    import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
-
     description
-        "Service definition for yanglib project";
+        "Service configuration for yanglib project";
 
     revision "2014-12-10" {
         description
             "Initial revision";
     }
 
-    identity yanglib {
-        base config:module-type;
-        config:java-name-prefix Yanglib;
-    }
-
-    augment "/config:modules/config:module/config:configuration" {
-        case yanglib {
-            when "/config:modules/config:module/config:type = 'yanglib'";
-            container broker {
-                uses config:service-ref {
-                    refine type {
-                        mandatory true;
-                        config:required-identity md-sal-binding:binding-broker-osgi-registry;
-                    }
-                }
-            }
-
-            // TODO extracting the schema repositories
-            leaf cache-folder {
-                type string;
-                description "local filesystem folder to use as cache + to load yang models from";
-            }
+    container yanglib-config {
+        // TODO extracting the schema repositories
+        leaf cache-folder {
+            mandatory true;
+            type string;
+            description "local filesystem folder to use as cache + to load yang models from";
+        }
 
-            // TODO it would be better if the binding arguments could be located by the app automatically
-            leaf binding-addr {
-                type string;
-                // TODO make this uri
-                description "binding address is necessary for generating proper URLS (accessible from the outside world)
-                             for models present directly in the library";
-            }
+        // TODO it would be better if the binding arguments could be located by the app automatically
+        leaf binding-addr {
+            mandatory true;
+            type string;
+            // TODO make this uri
+            description "binding address is necessary for generating proper URLS (accessible from the outside world)
+                         for models present directly in the library";
+        }
 
-            leaf binding-port {
-                type uint32;
-                // TODO proper type
-                description "binding port is necessary for generating proper URLS (accessible from the outside world)
-                             for models present directly in the library";
-            }
+        leaf binding-port {
+            mandatory true;
+            type uint32;
+            // TODO proper type
+            description "binding port is necessary for generating proper URLS (accessible from the outside world)
+                         for models present directly in the library";
         }
     }
-}
\ No newline at end of file
+}