1 module openflow-plugin-provider-impl {
3 namespace "urn:opendaylight:params:xml:ns:yang:openflow:common:config:impl";
4 prefix "openflow-plugin-provider-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 "2015-03-27" {
18 "Second openflow plugin implementation.";
21 identity openflow-plugin-provider-impl {
22 base config:module-type;
23 config:provided-service openflow-provider:openflow-provider;
24 config:java-name-prefix OpenFlowProvider;
27 //TODO this needs to be split to API and IMPL - crate new yang describing API in openflowplugin-api
28 //TODO this needs to be split to API and IMPL - crate new yang describing IMPL in openflowplugin-impl
30 identity msg-spy-service {
32 "MessageCountDumperServiceInterface as a MsgSpyService interface identity";
33 base config:service-type;
34 config:java-class "org.opendaylight.openflowplugin.api.openflow.statistics.MessageCountDumper";
37 identity msg-spy-service-impl {
39 "This is the definition of MsgSpyService implementation module identity.";
40 base config:module-type;
41 config:provided-service msg-spy-service;
42 config:java-name-prefix MsgSpyService;
45 // role of OFPlugin instance
49 description "no change to role";
52 description "promote current role to MASTER";
55 description "demote current role to SLAVE";
60 augment "/config:modules/config:module/config:configuration" {
61 case openflow-plugin-provider-impl {
62 when "/config:modules/config:module/config:type = 'openflow-plugin-provider-impl'";
64 container binding-aware-broker {
65 uses config:service-ref {
68 config:required-identity md-sal-binding:binding-broker-osgi-registry;
72 list openflow-switch-connection-provider {
73 uses config:service-ref {
76 config:required-identity openflow-switch-connection-provider:openflow-switch-connection-provider;
87 case msg-spy-service-impl {
88 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
90 container openflow-plugin-provider {
91 uses config:service-ref {
94 config:required-identity openflow-provider:openflow-provider;
104 augment "/config:modules/config:module/config:state" {
105 case msg-spy-service-impl {
106 when "/config:modules/config:module/config:type = 'msg-spy-service-impl'";
109 "MXBean designed for Message Statistic providing to JConsole.";
115 rpcx:rpc-context-instance "make-msg-statistics-rpc";
120 identity make-msg-statistics-rpc;
122 rpc make-msg-statistics {
125 "Shortcut JMX call to getMsgStatistics.";
128 uses rpcx:rpc-context-ref {
129 refine context-instance {
130 rpcx:rpc-context-instance make-msg-statistics-rpc;