Make TCP netconf endpoint configurable
[controller.git] / opendaylight / netconf / netconf-tcp / src / main / yang / netconf-northbound-tcp.yang
1 module netconf-northbound-tcp {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:netconf:northbound:tcp";
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 tcp server";
18
19     revision "2015-04-23" {
20         description
21             "Initial revision.";
22     }
23
24     identity netconf-northbound-tcp {
25         base config:module-type;
26         config:java-name-prefix NetconfNorthboundTcp;
27     }
28
29     augment "/config:modules/config:module/config:configuration" {
30         case netconf-northbound-tcp {
31             when "/config:modules/config:module/config:type = 'netconf-northbound-tcp'";
32
33             leaf port {
34                 type inet:port-number;
35                 default 2831;
36             }
37
38             leaf binding-address {
39                 type inet:ip-address;
40                 default "0.0.0.0";
41             }
42
43             container dispatcher {
44                 uses config:service-ref {
45                     refine type {
46                         config:required-identity nn:netconf-server-dispatcher;
47                     }
48                 }
49             }
50         }
51     }
52
53 }