X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fyanglib%2Fsrc%2Fmain%2Fyang%2Fyanglib.yang;h=275995b3b1a8d91ee65b9edf65471ee3805907df;hb=b147890ac9b785c195eb3f70d44c81d86964794c;hp=0267abfd3cdb0c44d8c9e46208d5878511db9a26;hpb=fc7cf19a6e5f0d0f27365921f97c03e397ee9db7;p=netconf.git diff --git a/netconf/yanglib/src/main/yang/yanglib.yang b/netconf/yanglib/src/main/yang/yanglib.yang index 0267abfd3c..275995b3b1 100644 --- a/netconf/yanglib/src/main/yang/yanglib.yang +++ b/netconf/yanglib/src/main/yang/yanglib.yang @@ -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 +}