7066442aabd8bd0174f5d9ce3035ae2a0e9f27d6
[vpnservice.git] / idmanager / idmanager-api / src / main / yang / id-manager.yang
1 module odl-id-manager {
2     namespace "urn:opendaylight:vpnservice:idmanager";
3     prefix idmgr;
4
5     revision "2015-04-03" {
6         description "ID generator and manager Service module";
7     }
8
9     
10         list id-pool {
11                 key "pool-name";
12                 leaf id-start { type uint32; }
13                 leaf pool-size { type uint64; }
14                 leaf pool-name { type string; }
15                 list generated-ids {
16                         key "id-key";
17                         leaf id-key { type string; }
18                         leaf id-value { type uint32; }
19                 }
20         }
21         
22         rpc createIdPool {
23                 input {
24                         leaf pool-name { type string; }
25                         leaf id-start { type uint32; }
26                         leaf pool-size { type uint64; }
27                 }
28         }
29         
30         rpc getUniqueId {
31                 input {
32                         leaf pool-name { type string; }
33                         leaf id-key {type string; }
34                 }
35                 output {
36                         leaf id-value { type uint32; }
37                 }
38         }
39     
40 }