Merge "Bug 2731: Discard changes only when transaction exist."
[controller.git] / opendaylight / netconf / mdsal-netconf-monitoring / src / main / yang / netconf-mdsal-monitoring.yang
1 module netconf-mdsal-monitoring {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:mdsal:monitoring";
4     prefix "nmmonitor";
5
6     import netconf-northbound-mapper { prefix nnm; revision-date 2015-01-14; }
7     import opendaylight-md-sal-binding {prefix md-sal-binding; revision-date 2013-10-28;}
8     import netconf-northbound { prefix nn; revision-date 2015-01-14; }
9     import config { prefix config; revision-date 2013-04-05; }
10
11     organization "Cisco Systems, Inc.";
12
13     description
14         "This module contains the base YANG definitions for
15          an MD-SAL monitoring mapper implementation";
16
17     revision "2015-02-18" {
18         description
19             "Initial revision.";
20     }
21
22     identity netconf-mdsal-monitoring-mapper {
23         base config:module-type;
24         config:provided-service nnm:netconf-northbound-mapper;
25     }
26
27     augment "/config:modules/config:module/config:configuration" {
28         case netconf-mdsal-monitoring-mapper {
29             when "/config:modules/config:module/config:type = 'netconf-mdsal-monitoring-mapper'";
30
31             container server-monitoring {
32                 uses config:service-ref {
33                     refine type {
34                         mandatory true;
35                         config:required-identity nn:netconf-server-monitoring;
36                     }
37                 }
38             }
39
40             container aggregator {
41                 uses config:service-ref {
42                     refine type {
43                         mandatory true;
44                         config:required-identity nnm:netconf-mapper-registry;
45                     }
46                 }
47             }
48
49             container binding-aware-broker {
50                 uses config:service-ref {
51                     refine type {
52                         mandatory true;
53                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
54                     }
55                 }
56             }
57         }
58     }
59
60 }