BUG-4118: Li:backward compatibility - rpcs - initial proposal
[openflowplugin.git] / openflowplugin-impl / src / main / yang / openflow-plugin-impl.yang
index aecb5c4eb8b0ce77f03396a97bbc5457c9c96b54..aee2d6ccd1d1c776f6a84cf3737094bc152f511e 100644 (file)
@@ -9,8 +9,8 @@ module openflow-plugin-provider-impl {
     import openflow-switch-connection-provider {prefix openflow-switch-connection-provider;revision-date 2014-03-28;}
     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
     import opendaylight-sal-binding-broker-impl { prefix sal-broker; revision-date 2013-10-28;}
-    import openflow-plugin-types { prefix ofp-types; revision-date 2015-03-27;}
     import openflowplugin-extension-registry {prefix ofp-ext-reg; revision-date 2015-04-25;}
+    import opendaylight-entity-ownership-service { prefix ownership-service; revision-date 2015-08-10;}
 
     description
         "openflow-plugin-impl";
@@ -63,6 +63,14 @@ module openflow-plugin-provider-impl {
                     }
                 }
             }
+            container entity-ownership-service {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity ownership-service:entity-ownership-service;
+                    }
+                }
+            }
             list openflow-switch-connection-provider {
                 uses config:service-ref {
                     refine type {
@@ -71,10 +79,6 @@ module openflow-plugin-provider-impl {
                     }
                 }
             }
-            leaf role {
-                type ofp-types:ofp-role;
-                default "NOCHANGE";
-            }
             leaf rpc-requests-quota {
                 type uint32;
                 default 500;
@@ -91,6 +95,12 @@ module openflow-plugin-provider-impl {
                 type boolean;
                 default "false";
             }
+            leaf is-statistics-rpc-enabled {
+                status deprecated;
+                description "Exposing backward compatible statistics rpcs providing result in form of async notification";
+                type boolean;
+                default "false";
+            }
         }
 
     }