Clean up unnecessary imports in 01-md-sal.xml .
[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 opendaylight-md-sal-dom {prefix dom;}
10
11     description
12         "Service definition for Binding Aware MD-SAL.";
13  
14     revision "2013-10-28" {
15         description
16             "Initial revision";
17     }
18
19     identity sal-netconf-connector {
20         base config:module-type;
21         config:java-name-prefix NetconfConnector;
22     }
23
24
25     grouping server {
26         leaf address {
27             type string;
28         }
29     
30         leaf port {
31             type uint32;
32         }
33     }
34
35
36     augment "/config:modules/config:module/config:configuration" {
37         case sal-netconf-connector {
38             when "/config:modules/config:module/config:type = 'sal-netconf-connector'";
39             
40             leaf address {
41                 type string;
42             }
43
44             leaf port {
45                 type uint32;
46             }
47             
48             leaf tcp-only {
49                 type boolean;
50             }
51
52             leaf username {
53                 type string;
54             }
55             
56             leaf password {
57                 type string;
58             }
59             container dom-registry {
60                 uses config:service-ref {
61                     refine type {
62                         mandatory true;
63                         config:required-identity dom:dom-broker-osgi-registry;
64                     }
65                 }
66             }
67
68             container boss-thread-group {
69                 uses config:service-ref {
70                     refine type {
71                         config:required-identity netty:netty-threadgroup;
72                     }
73                 }
74             }
75
76             container worker-thread-group {
77                 uses config:service-ref {
78                     refine type {
79                         config:required-identity netty:netty-threadgroup;
80                     }
81                 }
82             }
83
84             container event-executor {
85                 uses config:service-ref {
86                     refine type {
87                         config:required-identity netty:netty-event-executor;
88                     }
89                 }
90             }
91         }
92     }
93 }