Choice and case resolving in JSON output
[controller.git] / opendaylight / md-sal / sal-netconf-connector / src / main / yang / odl-sal-netconf-connector-cfg.yang
1 module odl-sal-netconf-connector-cfg {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf";
4     prefix "sal-netconf";
5
6         import config { prefix config; revision-date 2013-04-05; }
7         import threadpool {prefix th;}
8         import netty {prefix netty;}
9         import ietf-inet-types {prefix inet;}
10         import opendaylight-md-sal-dom {prefix dom;}
11
12     description
13         "Service definition for Binding Aware MD-SAL.";
14  
15     revision "2013-10-28" {
16         description
17             "Initial revision";
18     }
19
20     identity sal-netconf-connector {
21         base config:module-type;
22         config:java-name-prefix NetconfConnector;
23     }
24
25
26     grouping server {
27         leaf address {
28             type string;
29         }
30     
31         leaf port {
32             type uint32;
33         }
34     }
35
36
37     augment "/config:modules/config:module/config:configuration" {
38         case sal-netconf-connector {
39             when "/config:modules/config:module/config:type = 'sal-netconf-connector'";
40             
41             leaf address {
42                 type string;
43             }
44
45             leaf port {
46                 type uint32;
47             }
48
49             container dom-registry {
50                 uses config:service-ref {
51                     refine type {
52                         mandatory true;
53                         config:required-identity dom:dom-broker-osgi-registry;
54                     }
55                 }
56             }
57
58             container boss-thread-group {
59                 uses config:service-ref {
60                     refine type {
61                         config:required-identity netty:netty-threadgroup;
62                     }
63                 }
64             }
65
66             container worker-thread-group {
67                 uses config:service-ref {
68                     refine type {
69                         config:required-identity netty:netty-threadgroup;
70                     }
71                 }
72             }
73         }
74     }
75 }