add bgpmanager service dependency
[vpnservice.git] / vpnmanager / vpnmanager-impl / src / main / yang / vpnservice-impl.yang
index 3c5fb3dd605844b151a49848e228d6e2fa855de6..f77b000e6744b0f3d340a1511e8513e03f1513c3 100644 (file)
@@ -5,6 +5,7 @@ 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 bgpmanager-api { prefix bgpmgr-api; revision-date 2015-04-20;}
 
     description
         "Service definition for vpnservice project";
@@ -30,6 +31,14 @@ module vpnservice-impl {
                     }
                 }
             }
+            container bgpmanager {
+                uses config:service-ref {
+                    refine type {
+                        mandatory true;
+                        config:required-identity bgpmgr-api:bgpmanager-api;
+                    }
+                }
+            }
         }
     }
 }