Merge "Startup archetype: remove 'Impl' from config subsystem Module name."
[controller.git] / opendaylight / netconf / netconf-ssh / src / main / yang / netconf-northbound-ssh.yang
1 module netconf-northbound-ssh {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:northbound:ssh";
4     prefix "nni";
5
6     import netconf-northbound-mapper { prefix nnm; revision-date 2015-01-14; }
7     import netconf-northbound { prefix nn; revision-date 2015-01-14; }
8     import config { prefix config; revision-date 2013-04-05; }
9     import threadpool {prefix th;}
10     import netty {prefix netty;}
11     import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
12
13     organization "Cisco Systems, Inc.";
14
15     description
16         "This module contains the base YANG definitions for
17          a default implementation of netconf northbound server";
18
19     revision "2015-01-14" {
20         description
21             "Initial revision.";
22     }
23
24     identity netconf-northbound-ssh {
25         base config:module-type;
26         config:java-name-prefix NetconfNorthboundSsh;
27     }
28
29     augment "/config:modules/config:module/config:configuration" {
30         case netconf-northbound-ssh {
31             when "/config:modules/config:module/config:type = 'netconf-northbound-ssh'";
32
33             leaf port {
34                 type inet:port-number;
35                 default 2830;
36             }
37
38             leaf binding-address {
39                 type inet:ip-address;
40                 default "0.0.0.0";
41             }
42
43             container processing-executor {
44                 uses config:service-ref {
45                     refine type {
46                         mandatory true;
47                         config:required-identity th:scheduled-threadpool;
48                     }
49                 }
50
51                 description "Required by the mina-ssh library used in SSH endpoint";
52             }
53
54             container event-executor {
55                 uses config:service-ref {
56                     refine type {
57                         mandatory true;
58                         config:required-identity netty:netty-event-executor;
59                     }
60                 }
61             }
62
63             container worker-thread-group {
64                 uses config:service-ref {
65                     refine type {
66                         config:required-identity netty:netty-threadgroup;
67                     }
68                 }
69             }
70
71             container dispatcher {
72                 uses config:service-ref {
73                     refine type {
74                         config:required-identity nn:netconf-server-dispatcher;
75                     }
76                 }
77             }
78
79             // FIXME use auth provider from aaa instead
80             leaf username {
81                 description "Specifies username credential";
82                 type string;
83             }
84
85             leaf password {
86                 description "Specifies password credential";
87                 type string;
88             }
89
90
91         }
92     }
93
94 }