Introduction of XSQL
[controller.git] / opendaylight / md-sal / sal-dom-xsql / src / main / yang / XSQL.yang
1 module XSQL{
2     yang-version 1;
3     namespace "http://netconfcentral.org/ns/XSQL";
4     prefix XSQL;
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
8     import rpc-context { prefix rpcx; revision-date 2013-06-17; }
9     import opendaylight-md-sal-dom {prefix sal;}
10     import opendaylight-md-sal-common {prefix common;}
11
12     organization "Netconf Central";
13     contact "Sharon Aicler <saichler@cisco.com>";
14     description "YANG version of the XSQL status";
15
16     revision "2014-06-26" {
17           description "XSQL module initial version";
18     }
19
20     container XSQL {
21         presence "Indicates the XSQL service is available";
22         description "Container to indicate the XSQL availability";
23         leaf port {
24             type string;
25             config false;
26             mandatory true;
27             description "The port the XSQL binds on";
28         }
29     }
30
31     identity XSQL {
32         base config:module-type;
33         config:java-name-prefix XSQL;
34     }
35
36     augment "/config:modules/config:module/config:configuration" {
37         case XSQL {
38             when "/config:modules/config:module/config:type = 'XSQL'";
39
40                         container data-broker {
41                 uses config:service-ref {
42                     refine type {
43                         mandatory false;
44                         config:required-identity mdsal:binding-data-broker;
45                     }
46                 }
47             }         
48
49             container async-data-broker {
50                 uses config:service-ref {
51                     refine type {
52                         mandatory false;
53                         config:required-identity sal:dom-async-data-broker;
54                     }
55                 }
56
57             }
58
59             container schema-service {
60                 uses config:service-ref {
61                     refine type {
62                         mandatory false;
63                         config:required-identity sal:schema-service;
64                     }
65                 }
66
67             }
68
69         }
70     }
71
72 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.