1. nexthopMgr intg with MdSalUtil & IdMgr
[vpnservice.git] / nexthopmgr / nexthopmgr-impl / src / main / yang / nexthopmgr-impl.yang
1 module nexthopmgr-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:nexthopmgr:impl";
4     prefix "nexthopmgr-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 odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
9     import odl-interface {prefix odlif; revision-date 2015-03-31;}
10
11     description
12         "Service definition for nexthopmgr project";
13
14     revision "2015-03-25" {
15         description
16             "Initial revision";
17     }
18
19     identity nexthopmgr-impl {
20         base config:module-type;
21         config:java-name-prefix NexthopmgrImpl;
22     }
23
24     augment "/config:modules/config:module/config:configuration" {
25         case nexthopmgr-impl {
26             when "/config:modules/config:module/config:type = 'nexthopmgr-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 mdsalutil {
36                 uses config:service-ref {
37                     refine type {
38                         mandatory true;
39                         config:required-identity odl-mdsal:odl-mdsalutil;
40                     }
41                 }
42             }
43             container odlinterface {
44                 uses config:service-ref {
45                     refine type {
46                         mandatory true;
47                         config:required-identity odlif:odl-interface;
48                     }
49                 }
50             }
51         }
52     }
53 }