blob: 364707ef5724fd0db61d46bd6c70eb3918af5dd8 [file] [log] [blame]
Patrick Bradyc7d00752017-06-01 10:45:37 -07001module appc-oam-impl {
2
3 yang-version 1;
4 namespace "org:openecomp:appc:oam:impl";
5 prefix "appc-oam-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 appc-oam implementation.";
13
14 revision "2017-03-03" {
15 description
16 "Initial revision.";
17 }
18
19 // This is the definition of the service implementation as a module identity.
20 identity appc-oam-impl {
21 base config:module-type;
22
23 // Specifies the prefix for generated java classes.
24 config:java-name-prefix AppcOam;
25 }
26
27 // Augments the 'configuration' choice node under modules/module.
28 // We consume the three main services, RPCs, DataStore, and Notifications
29 augment "/config:modules/config:module/config:configuration" {
30 case appc-oam-impl {
31 when "/config:modules/config:module/config:type = 'appc-oam-impl'";
32
33 container rpc-registry {
34 uses config:service-ref {
35 refine type {
36 mandatory true;
37 config:required-identity mdsal:binding-rpc-registry;
38 }
39 }
40 }
41
42 container notification-service {
43 uses config:service-ref {
44 refine type {
45 mandatory true;
46 config:required-identity mdsal:binding-notification-service;
47 }
48 }
49 }
50
51 container data-broker {
52 uses config:service-ref {
53 refine type {
54 mandatory false;
55 config:required-identity mdsal:binding-async-data-broker;
56 }
57 }
58 }
59 }
60 }
61}