Vpnmanager and fibmanager changes
[vpnservice.git] / vpnmanager / vpnmanager-impl / src / main / yang / vpnservice-impl.yang
index b1703e2227d693432a7e3c27c52ff5d00a769d7d..ef54e02fc06e298d7f577f0586f0066706925a5c 100644 (file)
@@ -5,9 +5,10 @@ module vpnservice-impl {
 
     import config { prefix config; revision-date 2013-04-05; }
     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
+    import opendaylight-sal-binding-broker-impl { prefix md-sal-binding-impl; revision-date 2013-10-28;}
     import bgpmanager-api { prefix bgpmgr-api; revision-date 2015-04-20;}
+    import vpnmanager-api { prefix vpnmgr-api; revision-date 2015-05-08;}
     import odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
-    import odl-interface {prefix odlif; revision-date 2015-03-31;}
 
     description
         "Service definition for vpnservice project";
@@ -19,6 +20,7 @@ module vpnservice-impl {
 
     identity vpnservice-impl {
         base config:module-type;
+        config:provided-service vpnmgr-api:vpnmanager-api;
         config:java-name-prefix VpnserviceImpl;
     }
 
@@ -33,6 +35,14 @@ module vpnservice-impl {
                     }
                 }
             }
+            container rpcregistry {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity md-sal-binding:binding-rpc-registry;
+                    }
+                }
+            }
             container bgpmanager {
                 uses config:service-ref {
                     refine type {
@@ -49,11 +59,11 @@ module vpnservice-impl {
                     }
                 }
             }
-            container odlinterface {
+            container notification-service {
                 uses config:service-ref {
                     refine type {
                         mandatory true;
-                        config:required-identity odlif:odl-interface;
+                        config:required-identity md-sal-binding-impl:binding-new-notification-service;
                     }
                 }
             }