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 "local listening port";
44 description "address of local listening interface";
45 type ietf-inet:ip-address;
47 leaf transport-protocol {
48 description "Transport protocol used for communication.";
49 type of-config:transport-protocol;
52 leaf switch-idle-timeout {
53 description "idle timeout in [ms]";
59 description "keystore location";
63 description "keystore type (JKS or PKCS12)";
64 type of-config:keystore-type;
66 leaf keystore-path-type {
67 description "keystore path type (CLASSPATH or PATH)";
68 type of-config:path-type;
70 leaf keystore-password {
71 description "password protecting keystore";
74 leaf certificate-password {
75 description "password protecting certificate";
79 description "truststore location";
82 leaf truststore-type {
83 description "truststore type (JKS or PKCS12)";
84 type of-config:keystore-type;
86 leaf truststore-path-type {
87 description "truststore path type (CLASSPATH or PATH)";
88 type of-config:path-type;
90 leaf truststore-password {
91 description "password protecting truststore";
105 case statistics-collection-service-impl {
106 when "/config:modules/config:module/config:type = 'statistics-collection-service-impl'";
108 container statistics {
109 leaf statistics-collect {
110 description "Toggle statistics collecting";
113 leaf log-report-delay {
114 description "Delay between statistics logs";
118 list openflow-switch-connection-provider {
119 uses config:service-ref {
122 config:required-identity openflow-switch-connection-provider:openflow-switch-connection-provider;
129 augment "/config:modules/config:module/config:state" {
130 case statistics-collection-service-impl {
131 when "/config:modules/config:module/config:type = 'statistics-collection-service-impl'";
134 "MXBean designed for Message Statistic providing to JConsole.";
140 rpcx:rpc-context-instance "print-ofjava-statistics-rpc";
141 rpcx:rpc-context-instance "reset-ofjava-statistics-rpc";
145 identity print-ofjava-statistics-rpc;
146 identity reset-ofjava-statistics-rpc;
148 rpc print-ofjava-statistics {
150 "Shortcut JMX call to printOfjavaStatistics.";
152 uses rpcx:rpc-context-ref {
153 refine context-instance {
154 rpcx:rpc-context-instance print-ofjava-statistics-rpc;
165 rpc reset-ofjava-statistics {
167 "Shortcut JMX call to resetOfjavaStatistics.";
169 uses rpcx:rpc-context-ref {
170 refine context-instance {
171 rpcx:rpc-context-instance reset-ofjava-statistics-rpc;