Remove opendaylight directory
[netconf.git] / netconf / mdsal-netconf-notification / src / main / yang / netconf-mdsal-notification.yang
1 module netconf-mdsal-notification {
2      yang-version 1;
3      namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:mdsal:notification";
4      prefix "nnotification";
5
6      import netconf-northbound-mapper { prefix nnm; revision-date 2015-01-14; }
7      import opendaylight-md-sal-dom { prefix md-sal-dom; revision-date 2013-10-28; }
8      import opendaylight-md-sal-binding {prefix md-sal-binding; revision-date 2013-10-28;}
9      import netconf-northbound-notification {prefix nnn; revision-date 2015-08-06;}
10      import config { prefix config; revision-date 2013-04-05; }
11
12
13      organization "Cisco Systems, Inc.";
14
15      description
16          "This module contains the base YANG definitions for
17          an SAL notification mapper implementation";
18
19      revision "2015-08-03" {
20          description
21          "Initial revision.";
22      }
23
24      identity netconf-mdsal-notification-mapper {
25          base config:module-type;
26          config:provided-service nnm:netconf-northbound-mapper;
27      }
28
29      augment "/config:modules/config:module/config:configuration" {
30          case netconf-mdsal-notification-mapper {
31              when "/config:modules/config:module/config:type = 'netconf-mdsal-notification-mapper'";
32
33              container aggregator {
34                  uses config:service-ref {
35                      refine type {
36                          mandatory true;
37                          config:required-identity nnm:netconf-mapper-registry;
38                          }
39                  }
40              }
41
42              container binding-aware-broker {
43                  uses config:service-ref {
44                      refine type {
45                          mandatory true;
46                          config:required-identity md-sal-binding:binding-broker-osgi-registry;
47                      }
48                  }
49              }
50
51              container data-broker {
52                 uses config:service-ref {
53                     refine type {
54                         mandatory true;
55                         config:required-identity md-sal-binding:binding-async-data-broker;
56                     }
57                 }
58              }
59
60              container notification-collector {
61                 uses config:service-ref {
62                     refine type {
63                         mandatory true;
64                         config:required-identity nnn:netconf-notification-collector;
65                     }
66                 }
67              }
68
69             container notification-registry {
70                 uses config:service-ref {
71                     refine type {
72                         mandatory true;
73                         config:required-identity nnn:netconf-notification-registry;
74                     }
75                 }
76             }
77         }
78     }
79 }