Bump MRI upstreams
[openflowplugin.git] / openflowjava / openflow-protocol-spi / src / main / yang / openflow-switch-connection-config.yang
1 module openflow-switch-connection-config {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:config";
4     prefix "openflow-switch-connection-config";
5
6     import ietf-inet-types {prefix ietf-inet; revision-date 2013-07-15; }
7     import openflow-configuration {prefix of-config; revision-date 2014-06-30; }
8
9     description
10         "Configuration for an Openflow switch connection.";
11
12     revision "2016-05-06" {
13         description
14             "Initial revision";
15     }
16
17     list switch-connection-config {
18         key "instance-name";
19
20         leaf instance-name {
21             description "Name of the switch connection instance.";
22             type string;
23         }
24
25         leaf port {
26             description "local listening port";
27             type uint16;
28             mandatory true;
29         }
30
31         leaf transport-protocol {
32             description "Transport protocol used for communication.";
33             type of-config:transport-protocol;
34             mandatory true;
35         }
36
37         leaf channel-outbound-queue-size {
38             description "Channel outbound queue size";
39             type uint16;
40             default 1024;
41         }
42
43         leaf address {
44             description "address of local listening interface";
45             type ietf-inet:ip-address;
46         }
47
48         leaf use-barrier {
49             description "Enable barrier in Openflow java";
50             type boolean;
51             default true;
52         }
53
54         leaf group-add-mod-enabled {
55             description "Group Add Mod Enabled";
56             type boolean;
57             default false;
58         }
59
60         leaf switch-idle-timeout {
61             description "idle timeout in [ms]";
62             type uint32;
63             default 15000;
64         }
65
66         container tls {
67             leaf keystore {
68                 description "keystore location";
69                 type string;
70             }
71
72             leaf keystore-type {
73                 description "keystore type (JKS or PKCS12)";
74                 type of-config:keystore-type;
75             }
76
77             leaf keystore-path-type {
78                 description "keystore path type (CLASSPATH or PATH)";
79                 type of-config:path-type;
80             }
81
82             leaf keystore-password {
83                 description "password protecting keystore";
84                 type string;
85             }
86
87             leaf certificate-password {
88                 description "password protecting certificate";
89                 type string;
90             }
91
92             leaf truststore {
93                 description "truststore location";
94                 type string;
95             }
96
97             leaf truststore-type {
98                 description "truststore type (JKS or PKCS12)";
99                 type of-config:keystore-type;
100             }
101
102             leaf truststore-path-type {
103                 description "truststore path type (CLASSPATH or PATH)";
104                 type of-config:path-type;
105             }
106
107             leaf truststore-password {
108                 description "password protecting truststore";
109                 type string;
110             }
111
112             leaf-list cipher-suites {
113                 description "combination of cryptographic algorithms used by TLS connection";
114                 type string;
115                 ordered-by user;
116             }
117         }
118
119         container threads {
120             leaf boss-threads {
121                 type uint16;
122             }
123
124             leaf worker-threads {
125                 type uint16;
126             }
127         }
128     }
129 }