1 module openflow-switch-connection-provider-impl {
3 namespace "urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl";
4 prefix "openflow-switch-connection-provider-impl";
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 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
13 "openflow-switch-connection-provider";
15 revision "2014-03-28" {
20 identity openflow-switch-connection-provider-impl {
21 base "config:module-type";
22 config:provided-service openflow-switch-connection-provider:openflow-switch-connection-provider;
23 config:java-name-prefix SwitchConnectionProvider;
26 identity statistics-collection-service-impl {
28 "This is the definition of statistics collection module identity.";
29 base config:module-type;
30 config:provided-service openflow-switch-connection-provider:statistics-collection-service;
31 config:java-name-prefix StatisticsCollection;
34 augment "/config:modules/config:module/config:configuration" {
35 case openflow-switch-connection-provider-impl {
36 when "/config:modules/config:module/config:type = 'openflow-switch-connection-provider-impl'";
39 description "Enable barrier in Openflow java";
45 description "local listening port";
50 description "address of local listening interface";
51 type ietf-inet:ip-address;
53 leaf transport-protocol {
54 description "Transport protocol used for communication.";
55 type of-config:transport-protocol;
58 leaf switch-idle-timeout {
59 description "idle timeout in [ms]";
65 description "keystore location";
69 description "keystore type (JKS or PKCS12)";
70 type of-config:keystore-type;
72 leaf keystore-path-type {
73 description "keystore path type (CLASSPATH or PATH)";
74 type of-config:path-type;
76 leaf keystore-password {
77 description "password protecting keystore";
80 leaf certificate-password {
81 description "password protecting certificate";
85 description "truststore location";
88 leaf truststore-type {
89 description "truststore type (JKS or PKCS12)";
90 type of-config:keystore-type;
92 leaf truststore-path-type {
93 description "truststore path type (CLASSPATH or PATH)";
94 type of-config:path-type;
96 leaf truststore-password {
97 description "password protecting truststore";
105 leaf worker-threads {
111 case statistics-collection-service-impl {
112 when "/config:modules/config:module/config:type = 'statistics-collection-service-impl'";
114 container statistics {
115 leaf statistics-collect {
116 description "Toggle statistics collecting";
119 leaf log-report-delay {
120 description "Delay between statistics logs";
124 list openflow-switch-connection-provider {
125 uses config:service-ref {
128 config:required-identity openflow-switch-connection-provider:openflow-switch-connection-provider;
135 augment "/config:modules/config:module/config:state" {
136 case statistics-collection-service-impl {
137 when "/config:modules/config:module/config:type = 'statistics-collection-service-impl'";
140 "MXBean designed for Message Statistic providing to JConsole.";
146 rpcx:rpc-context-instance "print-ofjava-statistics-rpc";
147 rpcx:rpc-context-instance "reset-ofjava-statistics-rpc";
151 identity print-ofjava-statistics-rpc;
152 identity reset-ofjava-statistics-rpc;
154 rpc print-ofjava-statistics {
156 "Shortcut JMX call to printOfjavaStatistics.";
158 uses rpcx:rpc-context-ref {
159 refine context-instance {
160 rpcx:rpc-context-instance print-ofjava-statistics-rpc;
171 rpc reset-ofjava-statistics {
173 "Shortcut JMX call to resetOfjavaStatistics.";
175 uses rpcx:rpc-context-ref {
176 refine context-instance {
177 rpcx:rpc-context-instance reset-ofjava-statistics-rpc;