4fa945e54cd6a7c3015933d067800ffb3b7dca90
[netconf.git] / 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     import netconf-auth { prefix na; revision-date 2015-07-15; }
13
14     organization "Cisco Systems, Inc.";
15
16     description
17         "This module contains the base YANG definitions for
18          a default implementation of netconf northbound server";
19
20     revision "2015-01-14" {
21         description
22             "Initial revision.";
23     }
24
25     identity netconf-northbound-ssh {
26         base config:module-type;
27         config:java-name-prefix NetconfNorthboundSsh;
28     }
29
30     augment "/config:modules/config:module/config:configuration" {
31         case netconf-northbound-ssh {
32             when "/config:modules/config:module/config:type = 'netconf-northbound-ssh'";
33
34             leaf port {
35                 type inet:port-number;
36                 default 2830;
37             }
38
39             leaf binding-address {
40                 type inet:ip-address;
41                 default "0.0.0.0";
42             }
43
44             container processing-executor {
45                 uses config:service-ref {
46                     refine type {
47                         mandatory true;
48                         config:required-identity th:scheduled-threadpool;
49                     }
50                 }
51
52                 description "Required by the mina-ssh library used in SSH endpoint";
53             }
54
55             container event-executor {
56                 uses config:service-ref {
57                     refine type {
58                         mandatory true;
59                         config:required-identity netty:netty-event-executor;
60                     }
61                 }
62             }
63
64             container worker-thread-group {
65                 uses config:service-ref {
66                     refine type {
67                         config:required-identity netty:netty-threadgroup;
68                     }
69                 }
70             }
71
72             container dispatcher {
73                 uses config:service-ref {
74                     refine type {
75                         config:required-identity nn:netconf-server-dispatcher;
76                     }
77                 }
78             }
79
80             container auth-provider {
81                 uses config:service-ref {
82                     refine type {
83                         config:required-identity na:netconf-auth-provider;
84                     }
85                 }
86             }
87
88         }
89     }
90
91 }