Merge "Bug 1277 - Move ByteBuffUtils to separate bundle"
[openflowjava.git] / openflow-protocol-impl / src / main / yang / openflow-switch-connection-provider-impl.yang
1 module openflow-switch-connection-provider-impl {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl";
4     prefix "openflow-switch-connection-provider-impl";
5
6     import config {prefix config; revision-date 2013-04-05; }
7     import openflow-switch-connection-provider {prefix openflow-switch-connection-provider; revision-date 2014-03-28; }
8     import ietf-inet-types {prefix ietf-inet; revision-date 2010-09-24; }
9     import openflow-configuration {prefix of-config; revision-date 2014-06-30; }
10
11     description
12         "openflow-switch-connection-provider";
13
14     revision "2014-03-28" {
15         description
16             "Initial revision";
17     }
18
19     identity openflow-switch-connection-provider-impl {
20         base "config:module-type";
21         config:provided-service openflow-switch-connection-provider:openflow-switch-connection-provider;
22         config:java-name-prefix SwitchConnectionProvider;
23     }
24
25
26     augment "/config:modules/config:module/config:configuration" {
27         case openflow-switch-connection-provider-impl {
28             when "/config:modules/config:module/config:type = 'openflow-switch-connection-provider-impl'";
29
30             leaf port {
31                 description "local listening port";
32                 type uint16;
33                 mandatory true;
34             }
35             leaf address {
36                 description "address of local listening interface";
37                 type ietf-inet:ip-address;
38             }
39             leaf switch-idle-timeout {
40                 description "idle timeout in [ms]";
41                 type uint32;
42                 mandatory true;
43             }
44             container tls {
45                 leaf keystore {
46                     description "keystore location";
47                     type string;
48                 }
49                 leaf keystore-type {
50                     description "keystore type (JKS or PKCS12)";
51                     type of-config:keystore-type;
52                 }
53                 leaf keystore-path-type {
54                     description "keystore path type (CLASSPATH or PATH)";
55                     type of-config:path-type;
56                 }
57                 leaf keystore-password {
58                     description "password protecting keystore";
59                     type string;
60                 }
61                 leaf certificate-password {
62                     description "password protecting certificate";
63                     type string;
64                 }
65                 leaf truststore {
66                     description "truststore location";
67                     type string;
68                 }
69                 leaf truststore-type {
70                     description "truststore type (JKS or PKCS12)";
71                     type of-config:keystore-type;
72                 }
73                 leaf truststore-path-type {
74                     description "truststore path type (CLASSPATH or PATH)";
75                     type of-config:path-type;
76                 }
77                 leaf truststore-password {
78                     description "password protecting truststore";
79                     type string;
80                 }
81             }
82         }
83     }
84 }