Yang model for IdManager 29/18329/1
authorDimple Jain <dimple.jain@ericsson.com>
Wed, 15 Apr 2015 09:43:37 +0000 (15:13 +0530)
committerDimple Jain <dimple.jain@ericsson.com>
Wed, 15 Apr 2015 11:17:02 +0000 (16:47 +0530)
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
Change-Id: Id6b80c7ec1fbc148a6fa3baa2acdc0f799506a5f

idmanager/idmanager-api/src/main/yang/id-manager.yang
idmanager/idmanager-impl/pom.xml

index 7066442aabd8bd0174f5d9ce3035ae2a0e9f27d6..45bdcf2028a2c6bcfdc4e63efa0e492890cea9a2 100644 (file)
@@ -6,35 +6,39 @@ module odl-id-manager {
         description "ID generator and manager Service module";
     }
 
-    
-       list id-pool {
-               key "pool-name";
-               leaf id-start { type uint32; }
-               leaf pool-size { type uint64; }
-               leaf pool-name { type string; }
-               list generated-ids {
-                       key "id-key";
-                       leaf id-key { type string; }
-                       leaf id-value { type uint32; }
-               }
+        container pools {
+          description
+            "id pool instances";
+            config false;
+            list id-pool {
+                key "pool-name";
+                leaf id-start { type uint32;}
+                leaf pool-size { type uint64;}
+                leaf pool-name { type string;}
+                list generated-ids {
+                    key "id-key";
+                    leaf id-key { type string;}
+                    leaf id-value { type uint32;}
+                }
+            }
        }
-       
-       rpc createIdPool {
-               input {
-                       leaf pool-name { type string; }
-                       leaf id-start { type uint32; }
-                       leaf pool-size { type uint64; }
-               }
-       }
-       
-       rpc getUniqueId {
-               input {
-                       leaf pool-name { type string; }
-                       leaf id-key {type string; }
-               }
-               output {
-                       leaf id-value { type uint32; }
-               }
-       }
-    
+
+               rpc createIdPool {
+               input {
+                       leaf pool-name { type string; }
+                       leaf id-start { type uint32; }
+                       leaf pool-size { type uint64; }
+               }
+       }
+
+       rpc getUniqueId {
+               input {
+                       leaf pool-name { type string; }
+                       leaf id-key {type string; }
+               }
+               output {
+                       leaf id-value { type uint32; }
+               }
+       }
+
 }
index 03ecb36c8ac9b7cae674fdec0d2acd20dcf1c4d0..3f01a5be102b2a117b0f60e721ff4dde47b87a1b 100644 (file)
@@ -33,6 +33,11 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       <artifactId>mockito-all</artifactId>
       <scope>test</scope>
     </dependency>
+      <dependency>
+          <groupId>org.opendaylight.vpnservice</groupId>
+          <artifactId>idmanager-api</artifactId>
+          <version>0.0.1-SNAPSHOT</version>
+      </dependency>
   </dependencies>
   <build>
     <plugins>