Migrate to odlparent 2.0.0
[alto.git] / alto-core / standard-northbound-routes / example / src / main / yang / alto-northbound-route-example-impl.yang
1 module alto-northbound-route-example-impl {
2     yang-version 1;
3     namespace "urn:alto:northbound:route:example:impl";
4     prefix "alto-northbound-router-example-impl";
5
6     import alto-northbound { prefix alto-northbound; revision-date 2015-10-21; }
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
9
10     description
11         "Service definition for northbound project";
12
13     revision "2015-10-21" {
14         description
15             "Initial revision";
16     }
17
18     identity alto-northbound-route-example-impl {
19         base config:module-type;
20         config:java-name-prefix AltoNorthboundRouteExample;
21     }
22
23     augment "/config:modules/config:module/config:configuration" {
24         case alto-northbound-route-example {
25             when "/config:modules/config:module/config:type = 'alto-northbound-route-example-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
35             container alto-northbound-router {
36                 uses config:service-ref {
37                     refine type {
38                         mandatory true;
39                         config:required-identity alto-northbound:alto-northbound-router;
40                     }
41                 }
42             }
43         }
44     }
45 }