275995b3b1a8d91ee65b9edf65471ee3805907df
[netconf.git] / netconf / yanglib / src / main / yang / yanglib.yang
1 module yanglib {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:yanglib:impl";
4     prefix "yanglib";
5
6     description
7         "Service configuration for yanglib project";
8
9     revision "2014-12-10" {
10         description
11             "Initial revision";
12     }
13
14     container yanglib-config {
15         // TODO extracting the schema repositories
16         leaf cache-folder {
17             mandatory true;
18             type string;
19             description "local filesystem folder to use as cache + to load yang models from";
20         }
21
22         // TODO it would be better if the binding arguments could be located by the app automatically
23         leaf binding-addr {
24             mandatory true;
25             type string;
26             // TODO make this uri
27             description "binding address is necessary for generating proper URLS (accessible from the outside world)
28                          for models present directly in the library";
29         }
30
31         leaf binding-port {
32             mandatory true;
33             type uint32;
34             // TODO proper type
35             description "binding port is necessary for generating proper URLS (accessible from the outside world)
36                          for models present directly in the library";
37         }
38     }
39 }