Initial commit for Sequence Generator
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / main / yang / sequence-generator.yang
1 module sequence-generator-impl {
2
3     yang-version 1;
4     namespace "org:openecomp:appc:sequencegenerator:impl";
5     prefix "sequence-generator-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
10      description
11         "This module contains the base YANG definitions for
12          sequence-generator-impl implementation.";
13
14     revision "2017-07-06" {
15         description
16             "Initial revision.";
17     }
18
19     // This is the definition of the service implementation as a module identity.
20     identity sequence-generator-impl {
21             base config:module-type;
22
23             // Specifies the prefix for generated java classes.
24             config:java-name-prefix SequenceGenerator;
25     }
26
27     // Augments the 'configuration' choice node under modules/module.
28     // We consume the two main services, RPCs and DataStore
29     // Notification service is not used
30     augment "/config:modules/config:module/config:configuration" {
31         case sequence-generator-impl {
32             when "/config:modules/config:module/config:type = 'sequence-generator-impl'";
33
34             container rpc-registry {
35                 uses config:service-ref {
36                     refine type {
37                         mandatory true;
38                         config:required-identity mdsal:binding-rpc-registry;
39                     }
40                 }
41             }
42
43                         container notification-service {
44                             uses config:service-ref {
45                                 refine type {
46                                     mandatory true;
47                                     config:required-identity mdsal:binding-notification-service;
48                                 }
49                             }
50                         }
51
52             container data-broker {
53                 uses config:service-ref {
54                     refine type {
55                         mandatory false;
56                         config:required-identity mdsal:binding-async-data-broker;
57                     }
58                 }
59             }
60         }
61     }
62 }