Merge "LLDP monitor interval update fixes"
[vpnservice.git] / natservice / natservice-impl / src / main / yang / natservice-impl.yang
1 module natservice-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:natservice:impl";
4     prefix "natservice-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-sal-binding-broker-impl { prefix md-sal-binding-impl; revision-date 2013-10-28; }
9     import odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
10     import bgpmanager-api { prefix bgpmgr-api; revision-date 2015-04-20;}
11
12     description
13         "Service definition for NAT Service module";
14
15     revision "2016-01-11" {
16         description
17             "Initial revision";
18     }
19
20     identity natservice-impl {
21         base config:module-type;
22         config:java-name-prefix NATService;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case natservice-impl {
27             when "/config:modules/config:module/config:type = 'natservice-impl'";
28             container broker {
29                 uses config:service-ref {
30                     refine type {
31                         mandatory true;
32                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
33                     }
34                 }
35             }
36             container rpc-registry {
37                  uses config:service-ref {
38                       refine type {
39                          mandatory true;
40                          config:required-identity md-sal-binding:binding-rpc-registry;
41                       }
42                  }
43             }
44             container bgpmanager {
45                 uses config:service-ref {
46                     refine type {
47                         mandatory true;
48                         config:required-identity bgpmgr-api:bgpmanager-api;
49                     }
50                 }
51             }
52             container notification-service {
53                 uses config:service-ref {
54                     refine type {
55                         mandatory true;
56                         config:required-identity md-sal-binding-impl:binding-new-notification-service;
57                     }
58                 }
59             }
60             container mdsalutil {
61                 uses config:service-ref {
62                     refine type {
63                         mandatory true;
64                         config:required-identity odl-mdsal:odl-mdsalutil;
65                     }
66                 }
67             }
68         }
69     }
70 }