d5e30f570cfb42731941df75247273d4b871286a
[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
10     description
11         "Service definition for southbound project";
12
13     revision "2014-12-10" {
14         description
15             "Initial revision";
16     }
17
18     identity southbound-impl {
19         base config:module-type;
20         config:java-name-prefix SouthboundImpl;
21     }
22
23     augment "/config:modules/config:module/config:configuration" {
24         case southbound-impl {
25             when "/config:modules/config:module/config:type = 'southbound-impl'";
26             container broker {
27                 uses config:service-ref {
28                     refine type {
29                         mandatory true;
30                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
31                     }
32                 }
33             }
34             container binding-normalized-node-serializer {
35                 uses config:service-ref {
36                     refine type {
37                         mandatory true;
38                         config:required-identity md-sal-binding:binding-normalized-node-serializer;
39                     }
40                 }
41             }
42             container schema-service {
43                 uses config:service-ref {
44                     refine type {
45                         mandatory false;
46                         config:required-identity dom:schema-service;
47                     }
48                 }
49             }
50         }
51     }
52 }