89a2eac74f8fe0e88981eb50bd0d79e46a257e35
[ovsdb.git] / southbound / southbound-impl / src / main / yang / southbound-impl.yang
1 module southbound-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:southbound:impl";
4     prefix "southbound-impl";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
8     import opendaylight-md-sal-dom {prefix dom; revision-date 2013-10-28;}
9     import opendaylight-entity-ownership-service {prefix eos; revision-date 2015-08-10;}
10
11     description
12         "Service definition for southbound project";
13
14     revision "2014-12-10" {
15         description
16             "Initial revision";
17     }
18
19     identity southbound-impl {
20         base config:module-type;
21         config:java-name-prefix SouthboundImpl;
22     }
23
24     augment "/config:modules/config:module/config:configuration" {
25         case southbound-impl {
26             when "/config:modules/config:module/config:type = 'southbound-impl'";
27             container broker {
28                 uses config:service-ref {
29                     refine type {
30                         mandatory true;
31                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
32                     }
33                 }
34             }
35             container binding-normalized-node-serializer {
36                 uses config:service-ref {
37                     refine type {
38                         mandatory true;
39                         config:required-identity md-sal-binding:binding-normalized-node-serializer;
40                     }
41                 }
42             }
43             container schema-service {
44                 uses config:service-ref {
45                     refine type {
46                         mandatory false;
47                         config:required-identity dom:schema-service;
48                     }
49                 }
50             }
51             container clustering-entity-ownership-service {
52                 uses config:service-ref {
53                     refine type {
54                         mandatory true;
55                         config:required-identity eos:entity-ownership-service;
56                     }
57                 }
58             }
59         }
60     }
61 }