Merge "Updated BgpManager for Be"
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / yang / bgpmanager-impl.yang
1 module bgpmanager-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:bgpmanager:impl";
4     prefix "bgpmanager-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 bgpmanager-api { prefix bgpmgr-api; revision-date 2015-04-20;}
9     //import itm { prefix itm; revision-date 2015-07-01; }
10
11     description
12         "Service definition for bgpmanager project";
13
14     revision "2015-03-26" {
15         description
16             "Initial revision";
17     }
18
19     identity bgpmanager-impl {
20         base config:module-type;
21         config:provided-service bgpmgr-api:bgpmanager-api;
22         config:java-name-prefix BgpManagerImpl;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case bgpmanager-impl {
27             when "/config:modules/config:module/config:type = 'bgpmanager-impl'";
28             container broker {
29                 uses config:service-ref {
30                     refine type {
31                         mandatory true;     //true or false
32                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
33                     }
34                 }
35             }
36             /*container itm {
37                 uses config:service-ref {
38                     refine type {
39                         mandatory true;
40                         config:required-identity itm:itm;
41                     }
42                 }
43             }*/
44         }
45     }
46 }