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; revision-date 2014-03-26; }
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;}
11 import openflowplugin-extension-registry {prefix ofp-ext-reg; revision-date 2015-04-25;}
12 import opendaylight-entity-ownership-service { prefix entity-ownership-service; }
15 "openflow-plugin-custom-config-impl";
17 revision "2014-03-26" {
22 identity openflow-provider-impl {
23 base config:module-type;
24 config:provided-service openflow-provider:openflow-provider;
25 config:provided-service ofp-ext-reg:openflow-extension-registry-provider;
26 config:java-name-prefix ConfigurableOpenFlowProvider;
29 identity msg-spy-service {
31 "MessageCountDumperServiceInterface as a MsgSpyService interface identity";
32 base config:service-type;
33 config:java-class "org.opendaylight.openflowplugin.api.openflow.statistics.MessageCountDumper";
36 identity msg-spy-service-impl {
38 "This is the definition of MsgSpyService implementation module identity.";
39 base config:module-type;
40 config:provided-service msg-spy-service;
41 config:java-name-prefix MsgSpyService;
44 // role of OFPlugin instance
48 description "no change to role";
51 description "promote current role to MASTER";
54 description "demote current role to SLAVE";
59 augment "/config:modules/config:module/config:configuration" {
60 case openflow-provider-impl {
61 when "/config:modules/config:module/config:type = 'openflow-provider-impl'";
63 container data-broker {
64 uses config:service-ref {
67 config:required-identity md-sal-binding:binding-async-data-broker;
72 container ownership-service {
73 uses config:service-ref {
76 config:required-identity entity-ownership-service:entity-ownership-service;
81 container rpc-registry {
82 uses config:service-ref {
85 config:required-identity md-sal-binding:binding-rpc-registry;
89 container notification-service {
90 uses config:service-ref {
93 config:required-identity md-sal-binding:binding-notification-service;
98 list openflow-switch-connection-provider {
99 uses config:service-ref {
102 config:required-identity openflow-switch-connection-provider:openflow-switch-connection-provider;
112 case msg-spy-service-impl {
113 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
115 container openflow-plugin-provider {
116 uses config:service-ref {
119 config:required-identity openflow-provider:openflow-provider;
126 augment "/config:modules/config:module/config:state" {
127 case msg-spy-service-impl {
128 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
131 "MXBean designed for Message Statistic providing to JConsole.";
137 rpcx:rpc-context-instance "make-msg-statistics-rpc";
141 identity make-msg-statistics-rpc;
143 rpc make-msg-statistics {
146 "Shortcut JMX call to getMsgStatistics.";
149 uses rpcx:rpc-context-ref {
150 refine context-instance {
151 rpcx:rpc-context-instance make-msg-statistics-rpc;