IdManager implementation
[vpnservice.git] / idmanager / idmanager-api / src / main / yang / id-manager.yang
index 45bdcf2..79bd2ff 100644 (file)
@@ -1,4 +1,4 @@
-module odl-id-manager {
+module id-manager {
     namespace "urn:opendaylight:vpnservice:idmanager";
     prefix idmgr;
 
@@ -6,39 +6,38 @@ module odl-id-manager {
         description "ID generator and manager Service module";
     }
 
-        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; }
-               }
-       }
+    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 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; }
+      }
+    }
 }