From 2a851a36e61acb26eb0b72a9103e823d86f66a47 Mon Sep 17 00:00:00 2001 From: Dimple Jain Date: Wed, 15 Apr 2015 15:13:37 +0530 Subject: [PATCH] Yang model for IdManager Signed-off-by: Dimple Jain Change-Id: Id6b80c7ec1fbc148a6fa3baa2acdc0f799506a5f --- .../src/main/yang/id-manager.yang | 64 ++++++++++--------- idmanager/idmanager-impl/pom.xml | 5 ++ 2 files changed, 39 insertions(+), 30 deletions(-) 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 + -- 2.36.6