From: Dimple Jain Date: Wed, 15 Apr 2015 09:43:37 +0000 (+0530) Subject: Yang model for IdManager X-Git-Tag: release/lithium~71^2~1 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=vpnservice.git;a=commitdiff_plain;h=2a851a36e61acb26eb0b72a9103e823d86f66a47;ds=sidebyside Yang model for IdManager Signed-off-by: Dimple Jain Change-Id: Id6b80c7ec1fbc148a6fa3baa2acdc0f799506a5f --- diff --git a/idmanager/idmanager-api/src/main/yang/id-manager.yang b/idmanager/idmanager-api/src/main/yang/id-manager.yang index 7066442a..45bdcf20 100644 --- a/idmanager/idmanager-api/src/main/yang/id-manager.yang +++ b/idmanager/idmanager-api/src/main/yang/id-manager.yang @@ -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; } + } + } + } diff --git a/idmanager/idmanager-impl/pom.xml b/idmanager/idmanager-impl/pom.xml index 03ecb36c..3f01a5be 100644 --- a/idmanager/idmanager-impl/pom.xml +++ b/idmanager/idmanager-impl/pom.xml @@ -33,6 +33,11 @@ and is available at http://www.eclipse.org/legal/epl-v10.html mockito-all test + + org.opendaylight.vpnservice + idmanager-api + 0.0.1-SNAPSHOT +