BUG 4151 : Create a shared actor system
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / yang / remote-rpc-connector.yang
index 334d872c44845b42bd25662f9a143be4d54e0e4c..6f21929d78b9059668e21b02ea2106a03652188f 100644 (file)
@@ -5,6 +5,7 @@ module remote-rpc-connector {
 
     import config { prefix config; revision-date 2013-04-05; }
     import opendaylight-md-sal-dom {prefix dom;}
+    import actor-system-provider-service {prefix actor-system;}
 
     description
         "This module contains the base YANG definitions for
@@ -35,18 +36,21 @@ module remote-rpc-connector {
                 }
             }
 
+            container actor-system-provider {
+                uses config:service-ref {
+                    refine type {
+                        mandatory false;
+                        config:required-identity actor-system:actor-system-provider-service;
+                    }
+                }
+            }
+
             leaf enable-metric-capture {
                 default false;
                 type boolean;
                 description "Enable or disable metric capture.";
             }
 
-            leaf actor-system-name {
-                default odl-cluster-rpc;
-                type string;
-                description "Name by which actor system is identified. Its also used to find relevant configuration";
-            }
-
             leaf bounded-mailbox-capacity {
                 default 1000;
                 type uint16;