X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-xsql%2Fsrc%2Fmain%2Fyang%2FXSQL.yang;fp=opendaylight%2Fmd-sal%2Fsal-dom-xsql%2Fsrc%2Fmain%2Fyang%2FXSQL.yang;h=0437e10e34d688295d645ff0a3b47c3fcf1327a4;hb=800c476b2210456c33e4950cf345144cba02a4cd;hp=0000000000000000000000000000000000000000;hpb=73bda4f755598599f45cc46cd51c652c0a36e532;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-xsql/src/main/yang/XSQL.yang b/opendaylight/md-sal/sal-dom-xsql/src/main/yang/XSQL.yang new file mode 100644 index 0000000000..0437e10e34 --- /dev/null +++ b/opendaylight/md-sal/sal-dom-xsql/src/main/yang/XSQL.yang @@ -0,0 +1,72 @@ +module XSQL{ + yang-version 1; + namespace "http://netconfcentral.org/ns/XSQL"; + prefix XSQL; + + import config { prefix config; revision-date 2013-04-05; } + import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; } + import rpc-context { prefix rpcx; revision-date 2013-06-17; } + import opendaylight-md-sal-dom {prefix sal;} + import opendaylight-md-sal-common {prefix common;} + + organization "Netconf Central"; + contact "Sharon Aicler "; + description "YANG version of the XSQL status"; + + revision "2014-06-26" { + description "XSQL module initial version"; + } + + container XSQL { + presence "Indicates the XSQL service is available"; + description "Container to indicate the XSQL availability"; + leaf port { + type string; + config false; + mandatory true; + description "The port the XSQL binds on"; + } + } + + identity XSQL { + base config:module-type; + config:java-name-prefix XSQL; + } + + augment "/config:modules/config:module/config:configuration" { + case XSQL { + when "/config:modules/config:module/config:type = 'XSQL'"; + + container data-broker { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity mdsal:binding-data-broker; + } + } + } + + container async-data-broker { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity sal:dom-async-data-broker; + } + } + + } + + container schema-service { + uses config:service-ref { + refine type { + mandatory false; + config:required-identity sal:schema-service; + } + } + + } + + } + } + +}