BUG-2634 Config binding for netconf server
[controller.git] / opendaylight / netconf / mdsal-netconf-connector / src / main / yang / netconf-mdsal-mapper.yang
1 module netconf-mdsal-mapper {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:mdsal:mapper";
4     prefix "nmm";
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 config { prefix config; revision-date 2013-04-05; }
9
10     organization "Cisco Systems, Inc.";
11
12     description
13         "This module contains the base YANG definitions for
14          an MD-SAL mapper implementation";
15
16     revision "2015-01-14" {
17         description
18             "Initial revision.";
19     }
20
21     identity netconf-mdsal-mapper {
22         base config:module-type;
23         config:provided-service nnm:netconf-northbound-mapper;
24     }
25
26     augment "/config:modules/config:module/config:configuration" {
27         case netconf-mdsal-mapper {
28             when "/config:modules/config:module/config:type = 'netconf-mdsal-mapper'";
29
30             container root-schema-service {
31                 uses config:service-ref {
32                     refine type {
33                         mandatory false;
34                         config:required-identity md-sal-dom:schema-service;
35                     }
36                 }
37             }
38
39             container dom-broker {
40                 uses config:service-ref {
41                     refine type {
42                         mandatory false;
43                         config:required-identity md-sal-dom:dom-async-data-broker;
44                     }
45                 }
46             }
47         }
48     }
49
50 }