1 module openflow-provider-impl {
3 namespace "urn:opendaylight:params:xml:ns:yang:openflow:common:config:impl";
4 prefix "ofplugin-cfg-impl";
6 import config {prefix config; revision-date 2013-04-05;}
7 import rpc-context { prefix rpcx; revision-date 2013-06-17; }
8 import openflow-provider {prefix openflow-provider;}
9 import openflow-switch-connection-provider {prefix openflow-switch-connection-provider;revision-date 2014-03-28;}
10 import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
14 "openflow-plugin-custom-config-impl";
16 revision "2014-03-26" {
21 identity openflow-provider-impl {
22 base config:module-type;
23 config:provided-service openflow-provider:openflow-provider;
24 config:java-name-prefix ConfigurableOpenFlowProvider;
27 identity msg-spy-service {
29 "MessageCountDumperServiceInterface as a MsgSpyService interface identity";
30 base config:service-type;
31 config:java-class "org.opendaylight.openflowplugin.api.statistics.MessageCountDumper";
34 identity msg-spy-service-impl {
36 "This is the definition of MsgSpyService implementation module identity.";
37 base config:module-type;
38 config:provided-service msg-spy-service;
39 config:java-name-prefix MsgSpyService;
42 // role of OFPlugin instance
46 description "no change to role";
49 description "promote current role to MASTER";
52 description "demote current role to SLAVE";
57 augment "/config:modules/config:module/config:configuration" {
58 case openflow-provider-impl {
59 when "/config:modules/config:module/config:type = 'openflow-provider-impl'";
61 container binding-aware-broker {
62 uses config:service-ref {
65 config:required-identity md-sal-binding:binding-broker-osgi-registry;
69 list openflow-switch-connection-provider {
70 uses config:service-ref {
73 config:required-identity openflow-switch-connection-provider:openflow-switch-connection-provider;
83 case msg-spy-service-impl {
84 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
86 container openflow-plugin-provider {
87 uses config:service-ref {
90 config:required-identity openflow-provider:openflow-provider;
97 augment "/config:modules/config:module/config:state" {
98 case msg-spy-service-impl {
99 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
102 "MXBean designed for Message Statistic providing to JConsole.";
108 rpcx:rpc-context-instance "make-msg-statistics-rpc";
112 identity make-msg-statistics-rpc;
114 rpc make-msg-statistics {
117 "Shortcut JMX call to getMsgStatistics.";
120 uses rpcx:rpc-context-ref {
121 refine context-instance {
122 rpcx:rpc-context-instance make-msg-statistics-rpc;