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;
111 leaf skip-table-features {
112 description "Ability to skip pulling and storing of large table features. These features are still
113 available via rpc, so if use set it to true, it won't store table feature data in DataStore.";
119 case msg-spy-service-impl {
120 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
122 container openflow-plugin-provider {
123 uses config:service-ref {
126 config:required-identity openflow-provider:openflow-provider;
133 augment "/config:modules/config:module/config:state" {
134 case msg-spy-service-impl {
135 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
138 "MXBean designed for Message Statistic providing to JConsole.";
144 rpcx:rpc-context-instance "make-msg-statistics-rpc";
148 identity make-msg-statistics-rpc;
150 rpc make-msg-statistics {
153 "Shortcut JMX call to getMsgStatistics.";
156 uses rpcx:rpc-context-ref {
157 refine context-instance {
158 rpcx:rpc-context-instance make-msg-statistics-rpc;