Merge "Add blueprint wiring for netconf-console"
[netconf.git] / netconf / mdsal-netconf-yang-library / src / main / yang / netconf-mdsal-yang-library.yang
1 module netconf-mdsal-yang-library {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:mdsal:yang:library";
4     prefix "nmyanglib";
5
6     import opendaylight-md-sal-dom { prefix md-sal-dom; revision-date 2013-10-28; }
7     import opendaylight-md-sal-binding {prefix md-sal-binding; 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          MDSAL netconf yang module library implementation";
15
16     revision "2016-06-17" {
17         description
18             "Initial revision.";
19     }
20
21     identity netconf-mdsal-yanglib {
22         base config:module-type;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case netconf-mdsal-yanglib {
27             when "/config:modules/config:module/config:type = 'netconf-mdsal-yanglib'";
28
29             container root-schema-service {
30                 uses config:service-ref {
31                     refine type {
32                         mandatory false;
33                         config:required-identity md-sal-dom:schema-service;
34                     }
35                 }
36             }
37
38             container binding-aware-broker {
39                 uses config:service-ref {
40                     refine type {
41                         mandatory true;
42                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
43                     }
44                 }
45             }
46         }
47     }
48 }