Add readthedocs for sdnc/northbound
[sdnc/northbound.git] / vnfapi / provider / src / main / yang / vnfapi-provider-impl.yang
1 module vnfapi-provider-impl {
2
3     yang-version 1;
4     namespace "org:onap:sdnc:vnfapi:provider:impl";
5     prefix "vnfapi-provider-impl";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
9     import opendaylight-sal-binding-broker-impl {
10         prefix binding-impl;
11         revision-date 2013-10-28;
12     }
13
14      description
15         "This module contains the base YANG definitions for
16         vnfapi-provider impl implementation.";
17
18     revision "2014-05-23" {
19         description
20             "Initial revision.";
21     }
22
23     // This is the definition of the service implementation as a module identity.
24     identity vnfapi-provider-impl {
25             base config:module-type;
26
27             // Specifies the prefix for generated java classes.
28             config:java-name-prefix vnfapiProvider;
29     }
30
31     // Augments the 'configuration' choice node under modules/module.
32     // We consume the three main services, RPCs, DataStore, and Notifications
33     augment "/config:modules/config:module/config:configuration" {
34         case vnfapi-provider-impl {
35             when "/config:modules/config:module/config:type = 'vnfapi-provider-impl'";
36
37             container rpc-registry {
38                 uses config:service-ref {
39                     refine type {
40                         mandatory true;
41                         config:required-identity mdsal:binding-rpc-registry;
42                     }
43                 }
44             }
45
46             container notification-publish-adapter {
47                 uses config:service-ref {
48                     refine type {
49                         mandatory true;
50                         config:required-identity binding-impl:binding-new-notification-publish-service;
51                     }
52                 }
53             }
54
55             container data-broker {
56                 uses config:service-ref {
57                     refine type {
58                         mandatory false;
59                         config:required-identity mdsal:binding-async-data-broker;
60                     }
61                 }
62             }
63         }
64     }
65 }